brintos

brintos / llvm-project-archived public Read only

0
0
Text · 443 B · 0b4d403 Raw
15 lines · plain
1// RUN: not llvm-tblgen -DDIAG1 -I %p %s 2>&1 | FileCheck --check-prefixes=DIAG1 %s2// RUN: not llvm-tblgen -I %p %s 2>&1 | FileCheck --check-prefixes=DIAG2 %s3 4#ifdef DIAG15// DIAG1: error: only comments are supported after #endif6 7// Invalid #else below should be detected even if DIAG1 is not defined.8// DIAG2: error: only comments are supported after #endif9#ifdef DIAG2//DIAG210#else/*!DIAG2*/11#endif/* !DIAG212*/class C;13#endif // DIAG114 15