Mercurial > hg > CbC > CbC_llvm
annotate llvm/test/TableGen/foreach-range-parse-errors0.td @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children | 2e18cbf3894f |
rev | line source |
---|---|
150 | 1 // RUN: not llvm-tblgen %s 2>&1 | FileCheck -DFILE=%s %s |
2 | |
3 class ConstantsImpl { | |
4 int Zero = 0; | |
5 int One = 1; | |
6 int Two = 2; | |
7 int Three = 3; | |
8 int Five = 5; | |
9 } | |
10 | |
11 def Constants : ConstantsImpl; | |
12 | |
13 // CHECK-NOT: error: Unknown token when parsing a value | |
14 // CHECK: [[FILE]]:[[@LINE+3]]:22: error: Unknown 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 | |
17 foreach Index = 0 - in { | |
18 | |
19 } |