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 #else6 7// Invalid #else below should be detected even if DIAG1 is not defined.8// DIAG2: error: only comments are supported after #else9#ifdef DIAG2//DIAG210#else/*11*/class C;12#endif13#endif // DIAG114 15