brintos

brintos / llvm-project-archived public Read only

0
0
Text · 838 B · 27f428f Raw
27 lines · plain
1// RUN: not llvm-tblgen -DDIAG1 -I %p %s 2>&1 | FileCheck --check-prefixes=DIAG1 %s2// RUN: not llvm-tblgen -DDIAG4 -I %p %s 2>&1 | FileCheck --check-prefixes=DIAG4 %s3// RUN: not llvm-tblgen -DDIAG2 -I %p %s 2>&1 | FileCheck --check-prefixes=DIAG2 %s4// RUN: not llvm-tblgen -I %p %s 2>&1 | FileCheck --check-prefixes=DIAG3 %s5 6#ifdef DIAG17// DIAG1: error: only comments are supported after #define NAME8#define ENABLED1/*9*/class C;10#endif // DIAG111 12#ifdef DIAG413// DIAG4: warning: duplicate definition of macro: ENABLED114#define ENABLED115#define ENABLED116#endif // DIAG417 18#ifdef DIAG219// DIAG2: error: only comments are supported after #ifdef NAME20 21// Invalid #ifdef below should be detected even if DIAG2 is not defined.22// DIAG3: error: only comments are supported after #ifdef NAME23#ifdef DIAG2/*24*/class C;25#endif26#endif // DIAG227