summaryrefslogtreecommitdiffstats
path: root/lld/test/LinkerScript/linker-script-outputformat.test
diff options
context:
space:
mode:
authorShankar Easwaran <shankare@codeaurora.org>2014-02-25 05:17:24 +0000
committerShankar Easwaran <shankare@codeaurora.org>2014-02-25 05:17:24 +0000
commit2ea5148eff31962880b59722ce5698177afb9b31 (patch)
tree5667076bf6ec30fbe35536f437c1d91db0c8b34a /lld/test/LinkerScript/linker-script-outputformat.test
parent5881318c8877e67bb6e3c5f67a249bb8ca54043e (diff)
downloadbcm5719-llvm-2ea5148eff31962880b59722ce5698177afb9b31.tar.gz
bcm5719-llvm-2ea5148eff31962880b59722ce5698177afb9b31.zip
[LinkerScript] OUTPUT_FORMAT: Parse Quoted Strings
llvm-svn: 202111
Diffstat (limited to 'lld/test/LinkerScript/linker-script-outputformat.test')
-rw-r--r--lld/test/LinkerScript/linker-script-outputformat.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/lld/test/LinkerScript/linker-script-outputformat.test b/lld/test/LinkerScript/linker-script-outputformat.test
new file mode 100644
index 00000000000..10b6bd33653
--- /dev/null
+++ b/lld/test/LinkerScript/linker-script-outputformat.test
@@ -0,0 +1,12 @@
+/* RUN: linker-script-test %s | FileCheck %s
+*/
+
+OUTPUT_FORMAT(elf64-x86-64)
+
+/*
+CHECK: kw_output_format: OUTPUT_FORMAT
+CHECK: l_paren: (
+CHECK: identifier: elf64-x86-64
+CHECK: r_paren: )
+CHECK: OUTPUT_FORMAT(elf64-x86-64)
+*/
OpenPOWER on IntegriCloud