diff options
Diffstat (limited to 'test/LinkerScript/missing-symbol.test')
-rw-r--r-- | test/LinkerScript/missing-symbol.test | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/LinkerScript/missing-symbol.test b/test/LinkerScript/missing-symbol.test new file mode 100644 index 0000000000000..4e8777ef40b92 --- /dev/null +++ b/test/LinkerScript/missing-symbol.test @@ -0,0 +1,24 @@ +/* + RUN: linker-script-test %s 2> %t | FileCheck %s + RUN: FileCheck -input-file %t -check-prefix=CHECK-ERR %s +*/ +SECTIONS { + = foo + bar; +/* +CHECK-ERR: [[@LINE-2]]:5: error: expected symbol assignment, entry, overlay or output section name. +CHECK-ERR-NEXT: {{^ = foo \+ bar;}} +CHECK-ERR-NEXT: {{^ \^}} +*/ +} + +/* +CHECK: kw_sections: SECTIONS +CHECK: l_brace: { +CHECK: equal: = +CHECK: identifier: foo +CHECK: plus: + +CHECK: identifier: bar +CHECK: semicolon: ; +CHECK: r_brace: } +CHECK: eof: +*/ |