brintos

brintos / llvm-project-archived public Read only

0
0
Text · 325 B · 7717c10 Raw
14 lines · plain
1// RUN: not llvm-tblgen %s 2>&1 | FileCheck -DFILE=%s %s2 3class ConstantsImpl {4  int NegOne = -1;5}6 7def Constants : ConstantsImpl;8 9// CHECK: [[FILE]]:[[@LINE+2]]:38: error: invalid range, cannot be negative10// CHECK: [[FILE]]:[[@LINE+1]]:38: error: expected declaration in for11foreach Index = 0 - Constants.NegOne in {12 13}14