Mercurial > hg > CbC > CbC_llvm
annotate llvm/test/TableGen/foreach-range-parse-errors2.td @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children |
rev | line source |
---|---|
150 | 1 // RUN: not llvm-tblgen %s 2>&1 | FileCheck -DFILE=%s %s |
2 | |
3 class ConstantsImpl { | |
4 int NegOne = -1; | |
5 } | |
6 | |
7 def Constants : ConstantsImpl; | |
8 | |
9 // CHECK: [[FILE]]:[[@LINE+2]]:38: error: invalid range, cannot be negative | |
10 // CHECK: [[FILE]]:[[@LINE+1]]:38: error: expected declaration in for | |
11 foreach Index = 0 - Constants.NegOne in { | |
12 | |
13 } |