You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
424 B
15 lines
424 B
// RUN: not llvm-tblgen -DDIAG1 -I %p %s 2>&1 | FileCheck --check-prefixes=DIAG1 %s
|
|
// RUN: not llvm-tblgen -I %p %s 2>&1 | FileCheck --check-prefixes=DIAG2 %s
|
|
|
|
#ifdef DIAG1
|
|
// DIAG1: error: Only comments are supported after #else
|
|
|
|
// Invalid #else below should be detected even if DIAG1 is not defined.
|
|
// DIAG2: error: Only comments are supported after #else
|
|
#ifdef DIAG2//DIAG2
|
|
#else/*
|
|
*/class C;
|
|
#endif
|
|
#endif // DIAG1
|
|
|