summaryrefslogtreecommitdiffstats
path: root/llvm/test/TableGen/foreach-range-parse-errors0.td
blob: a3e6a9eb975638e422b300dddcc1eae4e6a69dd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// RUN: not llvm-tblgen %s 2>&1 | FileCheck -DFILE=%s %s

class ConstantsImpl {
  int Zero = 0;
  int One = 1;
  int Two = 2;
  int Three = 3;
  int Five = 5;
}

def Constants : ConstantsImpl;

// CHECK-NOT:  error: Unknown token when parsing a value
// CHECK: [[FILE]]:[[@LINE+3]]:22: error: Unknown token when parsing a value
// CHECK: [[FILE]]:[[@LINE+2]]:22: error: expected integer value as end of range
// CHECK: [[FILE]]:[[@LINE+1]]:22: error: expected declaration in for
foreach Index = 0 -  in {

}
OpenPOWER on IntegriCloud