summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/version-script.s
diff options
context:
space:
mode:
Diffstat (limited to 'lld/test/ELF/version-script.s')
-rw-r--r--lld/test/ELF/version-script.s32
1 files changed, 8 insertions, 24 deletions
diff --git a/lld/test/ELF/version-script.s b/lld/test/ELF/version-script.s
index fc6e6df2c93..4fe49d0e391 100644
--- a/lld/test/ELF/version-script.s
+++ b/lld/test/ELF/version-script.s
@@ -19,41 +19,25 @@
# RUN: ld.lld --version-script %t.script --dynamic-list %t.list %t.o %t2.so -o %t
# RUN: llvm-readobj -dyn-symbols %t | FileCheck --check-prefix=EXE %s
-# RUN: echo "VERSION_1.0{ \
-# RUN: global: foo1; \
-# RUN: local: *; }; \
-# RUN: VERSION_2.0{ \
-# RUN: global: foo3; \
-# RUN: local: *; }; " > %t4.script
+# RUN: echo "VERSION_1.0 { global: foo1; local: *; };" > %t4.script
+# RUN: echo "VERSION_2.0 { global: foo3; local: *; };" >> %t4.script
# RUN: ld.lld --version-script %t4.script -shared %t.o %t2.so -o %t4.so
# RUN: llvm-readobj -dyn-symbols %t4.so | FileCheck --check-prefix=VERDSO %s
-# RUN: echo "VERSION_1.0{ \
-# RUN: global: foo1; \
-# RUN: local: *; }; \
-# RUN: { \
-# RUN: global: foo3; \
-# RUN: local: *; }; " > %t5.script
+# RUN: echo "VERSION_1.0 { global: foo1; local: *; };" > %t5.script
+# RUN: echo "{ global: foo3; local: *; };" >> %t5.script
# RUN: not ld.lld --version-script %t5.script -shared %t.o %t2.so -o %t5.so 2>&1 | \
# RUN: FileCheck -check-prefix=ERR1 %s
# ERR1: anonymous version definition is used in combination with other version definitions
-# RUN: echo "{ \
-# RUN: global: foo1; \
-# RUN: local: *; }; \
-# RUN: VERSION_2.0 { \
-# RUN: global: foo3; \
-# RUN: local: *; }; " > %t5.script
+# RUN: echo "{ global: foo1; local: *; };" > %t5.script
+# RUN: echo "VERSION_2.0 { global: foo3; local: *; };" >> %t5.script
# RUN: not ld.lld --version-script %t5.script -shared %t.o %t2.so -o %t5.so 2>&1 | \
# RUN: FileCheck -check-prefix=ERR2 %s
# ERR2: EOF expected, but got VERSION_2.0
-# RUN: echo "VERSION_1.0{ \
-# RUN: global: foo1; \
-# RUN: local: *; }; \
-# RUN: VERSION_2.0 { \
-# RUN: global: foo1; \
-# RUN: local: *; }; " > %t6.script
+# RUN: echo "VERSION_1.0 { global: foo1; local: *; };" > %t6.script
+# RUN: echo "VERSION_2.0 { global: foo1; local: *; };" >> %t6.script
# RUN: ld.lld --version-script %t6.script -shared %t.o %t2.so -o %t6.so 2>&1 | \
# RUN: FileCheck -check-prefix=WARN2 %s
# WARN2: duplicate symbol foo1 in version script
OpenPOWER on IntegriCloud