annotate llvm/test/TableGen/foreach-range-parse-errors4.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 // Make sure there is no crash on undefined variable
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 // CHECK: [[FILE]]:[[@LINE+2]]:17: error: Variable not defined: 'foo'
anatofuz
parents:
diff changeset
5 // CHECK: [[FILE]]:[[@LINE+1]]:21: error: expected declaration in for
anatofuz
parents:
diff changeset
6 foreach Index = foo in {
anatofuz
parents:
diff changeset
7 def arst#Index;
anatofuz
parents:
diff changeset
8 }
anatofuz
parents:
diff changeset
9