annotate llvm/test/TableGen/foreach-range-parse-errors2.td @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: not llvm-tblgen %s 2>&1 | FileCheck -DFILE=%s %s
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 class ConstantsImpl {
anatofuz
parents:
diff changeset
4 int NegOne = -1;
anatofuz
parents:
diff changeset
5 }
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 def Constants : ConstantsImpl;
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 // CHECK: [[FILE]]:[[@LINE+2]]:38: error: invalid range, cannot be negative
anatofuz
parents:
diff changeset
10 // CHECK: [[FILE]]:[[@LINE+1]]:38: error: expected declaration in for
anatofuz
parents:
diff changeset
11 foreach Index = 0 - Constants.NegOne in {
anatofuz
parents:
diff changeset
12
anatofuz
parents:
diff changeset
13 }