llvm-for-llvmta/tools/clang/test/SemaCUDA/gnu-inline.cu
Nils Hölscher 7f403f4f1e added clang
2022-04-25 13:02:35 +02:00

11 lines
254 B
Plaintext

// RUN: %clang_cc1 -fsyntax-only -verify %s
#include "Inputs/cuda.h"
// expected-no-diagnostics
// Check that we can handle gnu_inline functions when compiling in CUDA mode.
void foo();
extern inline __attribute__((gnu_inline)) void bar() { foo(); }