mirror of
https://github.com/RPCS3/llvm.git
synced 2026-01-31 01:25:19 +01:00
Differential Revision: https://reviews.llvm.org/D54926 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@347686 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
443 B
TableGen
15 lines
443 B
TableGen
// 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 #endif
|
|
|
|
// Invalid #else below should be detected even if DIAG1 is not defined.
|
|
// DIAG2: error: Only comments are supported after #endif
|
|
#ifdef DIAG2//DIAG2
|
|
#else/*!DIAG2*/
|
|
#endif/* !DIAG2
|
|
*/class C;
|
|
#endif // DIAG1
|
|
|