20 lines · plain
1// RUN: not llvm-tblgen %s 2>&1 | FileCheck -DFILE=%s %s2 3class ConstantsImpl {4 int Zero = 0;5 int One = 1;6 int Two = 2;7 int Three = 3;8 int Five = 5;9}10 11def Constants : ConstantsImpl;12 13// CHECK-NOT: error: Unknown or reserved token when parsing a value14// CHECK: [[FILE]]:[[@LINE+3]]:22: error: Unknown or reserved token when parsing a value15// CHECK: [[FILE]]:[[@LINE+2]]:22: error: expected integer value as end of range16// CHECK: [[FILE]]:[[@LINE+1]]:22: error: expected declaration in for17foreach Index = 0 - in {18 19}20