[ELF] - Enable testcases that uses demangler to run under windows and escape quotes around "C++".

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
This commit is contained in:
George Rimar 2016-09-07 09:59:29 +00:00
parent 69c78d8db7
commit 8825a5c6ef
2 changed files with 9 additions and 9 deletions

View 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: }; \

View 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