[llvm-commits] [dragonegg] r158267 - in /dragonegg/trunk/test/validator/c++: 2007-01-06-ELF-Thunk-Sections-2.cpp 2007-01-06-ELF-Thunk-Sections.cpp

Duncan Sands baldrick at free.fr
Sat Jun 9 04:35:43 PDT 2012


Author: baldrick
Date: Sat Jun  9 06:35:42 2012
New Revision: 158267

URL: http://llvm.org/viewvc/llvm-project?rev=158267&view=rev
Log:
XFAIL this test for gcc-4.7 as it produces linkonce_odr linkage rather than weak
linkage.  As linkonce_odr linkage seems to be correct (and clang also produces
it) add a new test checking for linkonce_odr linkage from gcc-4.7 onwards.

Added:
    dragonegg/trunk/test/validator/c++/2007-01-06-ELF-Thunk-Sections-2.cpp
      - copied, changed from r158261, dragonegg/trunk/test/validator/c++/2007-01-06-ELF-Thunk-Sections.cpp
Modified:
    dragonegg/trunk/test/validator/c++/2007-01-06-ELF-Thunk-Sections.cpp

Copied: dragonegg/trunk/test/validator/c++/2007-01-06-ELF-Thunk-Sections-2.cpp (from r158261, dragonegg/trunk/test/validator/c++/2007-01-06-ELF-Thunk-Sections.cpp)
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/2007-01-06-ELF-Thunk-Sections-2.cpp?p2=dragonegg/trunk/test/validator/c%2B%2B/2007-01-06-ELF-Thunk-Sections-2.cpp&p1=dragonegg/trunk/test/validator/c%2B%2B/2007-01-06-ELF-Thunk-Sections.cpp&r1=158261&r2=158267&rev=158267&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/2007-01-06-ELF-Thunk-Sections.cpp (original)
+++ dragonegg/trunk/test/validator/c++/2007-01-06-ELF-Thunk-Sections-2.cpp Sat Jun  9 06:35:42 2012
@@ -1,12 +1,13 @@
 // RUN: %dragonegg %s -S -o - | FileCheck %s
 // PR1085
+// XFAIL: gcc-4.5, gcc-4.6
 
-// CHECK: define weak void @_ZThn8_N
-// CHECK: define weak void @_ZThn8_N
-// CHECK: define weak void @_ZThn8_N
-// CHECK: define weak void @_ZThn8_N
-// CHECK: define weak void @_ZThn8_N
-// CHECK: define weak void @_ZThn8_N
+// CHECK: define linkonce_odr void @_ZThn8_N
+// CHECK: define linkonce_odr void @_ZThn8_N
+// CHECK: define linkonce_odr void @_ZThn8_N
+// CHECK: define linkonce_odr void @_ZThn8_N
+// CHECK: define linkonce_odr void @_ZThn8_N
+// CHECK: define linkonce_odr void @_ZThn8_N
 
 class 
 __attribute__((visibility("default"))) QGenericArgument

Modified: dragonegg/trunk/test/validator/c++/2007-01-06-ELF-Thunk-Sections.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/test/validator/c%2B%2B/2007-01-06-ELF-Thunk-Sections.cpp?rev=158267&r1=158266&r2=158267&view=diff
==============================================================================
--- dragonegg/trunk/test/validator/c++/2007-01-06-ELF-Thunk-Sections.cpp (original)
+++ dragonegg/trunk/test/validator/c++/2007-01-06-ELF-Thunk-Sections.cpp Sat Jun  9 06:35:42 2012
@@ -1,5 +1,6 @@
 // RUN: %dragonegg %s -S -o - | FileCheck %s
 // PR1085
+// XFAIL: gcc-4.7
 
 // CHECK: define weak void @_ZThn8_N
 // CHECK: define weak void @_ZThn8_N





More information about the llvm-commits mailing list