• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: not llvm-tblgen %s 2>&1 | FileCheck -DFILE=%s %s
2
3class ConstantsImpl {
4  int Zero = 0;
5  int One = 1;
6  int Two = 2;
7  int Three = 3;
8  int Five = 5;
9}
10
11def Constants : ConstantsImpl;
12
13// CHECK-NOT:  error: Unknown or reserved token when parsing a value
14// CHECK: [[FILE]]:[[@LINE+3]]:22: error: Unknown or reserved token when parsing a value
15// CHECK: [[FILE]]:[[@LINE+2]]:22: error: expected integer value as end of range
16// CHECK: [[FILE]]:[[@LINE+1]]:22: error: expected declaration in for
17foreach Index = 0 -  in {
18
19}
20