brintos

brintos / llvm-project-archived public Read only

0
0
Text · 588 B · 222a8c2 Raw
23 lines · plain
1// RUN: not llvm-tblgen -DERROR1 %s 2>&1 | FileCheck --check-prefix=ERROR1 %s2// RUN: not llvm-tblgen -DERROR2 %s 2>&1 | FileCheck --check-prefix=ERROR2 %s3 4defvar list1 = ["foo", "bar", "snork"];5 6// Pasting a list with a reserved word should produce an error.7 8#ifdef ERROR19def list_paste {10  list<string> the_list = list1 # in;11}12// ERROR1: error: Unknown or reserved token when parsing a value13#endif14 15 16// Pasting an identifier with a reserved word should produce an error.17 18#ifdef ERROR219def name_paste#in {20}21// ERROR2: error: Unknown or reserved token when parsing a value22#endif23