brintos

brintos / llvm-project-archived public Read only

0
0
Text · 665 B · ce4dfe3 Raw
20 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -verify=cuda %s2// RUN: %clang_cc1 -fsyntax-only -verify=pedantic -pedantic %s3// RUN: %clang_cc1 -fsyntax-only -verify=cpp -x c++ %s4 5// cuda-no-diagnostics6 7__noinline__ void fun1() { } // cpp-error {{unknown type name '__noinline__'}}8 9__attribute__((noinline)) void fun2() { }10__attribute__((__noinline__)) void fun3() { }11[[gnu::__noinline__]] void fun4() { }12 13#define __noinline__ __attribute__((__noinline__))14__noinline__ void fun5() {}15 16#undef __noinline__17#10 "cuda.h" 3 // pedantic-warning {{this style of line directive is a GNU extension}}18#define __noinline__ __attribute__((__noinline__))19__noinline__ void fun6() {}20