[ELF] - Enable testcases that uses demangler to run under windows and escape quotes...
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 7 Sep 2016 09:59:29 +0000 (09:59 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 7 Sep 2016 09:59:29 +0000 (09:59 +0000)
Previously testcases were enabled only for shell.
r280733 added c++ itanium demangler to lld and we can enable them fully.

Also this change make quotes to be escaped:

extern "C++" -> extern \"C++\", which worked before just because we are dropping tokens
quotes internally at this moment.

llvm-svn: 280797

lld/test/ELF/version-script-extern-wildcards.s
lld/test/ELF/version-script-extern.s

index 0ef9c83..838f637 100644 (file)
@@ -1,15 +1,15 @@
-# REQUIRES: shell
+# REQUIRES: x86
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
 # RUN: echo "LIBSAMPLE_1.0 { \
 # RUN:   global:             \
-# RUN:      extern "C++" {   \
+# RUN:      extern \"C++\" { \
 # RUN:        foo*;          \
 # RUN:   };                  \
 # RUN: };                    \
 # RUN: LIBSAMPLE_2.0 {       \
 # RUN:   global:             \
-# RUN:     extern "C++" {    \
+# RUN:     extern \"C++\" {  \
 # RUN:       zed*;           \
 # RUN:       bar;            \
 # RUN:   };                  \
index 4396534..220aded 100644 (file)
@@ -1,17 +1,17 @@
-# REQUIRES: shell
+# REQUIRES: x86
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
 # RUN: echo "LIBSAMPLE_1.0 { \
 # RUN:   global:             \
-# RUN:      extern "C++" {   \
-# RUN:         \"foo(int)\";    \
-# RUN:         \"zed(int)\";    \
+# RUN:      extern \"C++\" { \
+# RUN:         \"foo(int)\"; \
+# RUN:         \"zed(int)\"; \
 # RUN:   };                  \
 # RUN: };                    \
 # RUN: LIBSAMPLE_2.0 {       \
 # RUN:   global:             \
-# RUN:     extern "C++" {    \
-# RUN:       \"bar(int)\";      \
+# RUN:     extern \"C++\" {  \
+# RUN:       \"bar(int)\";   \
 # RUN:   };                  \
 # RUN: }; " > %t.script
 # RUN: ld.lld --version-script %t.script -shared %t.o -o %t.so