]> granicus.if.org Git - clang/commitdiff
[MS-ABI] Lit fix for r205810
authorWarren Hunt <whunt@google.com>
Tue, 8 Apr 2014 22:49:38 +0000 (22:49 +0000)
committerWarren Hunt <whunt@google.com>
Tue, 8 Apr 2014 22:49:38 +0000 (22:49 +0000)
On linux strings have different linkage than on windows.  This
patch makes the lit test more general.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205812 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/sections.c

index 6e44e77f5b17781063730854095f087be6d96dc3..8d93fed480e1b879a2abb66ff75367780eea7a0d 100644 (file)
@@ -38,7 +38,7 @@ int TEST2;
 //CHECK: @D = global i32 1
 //CHECK: @a = global i32 1, section ".data"
 //CHECK: @b = constant i32 1, section ".my_const"
-//CHECK: @[[MYSTR:.*]] = linkonce_odr unnamed_addr constant [11 x i8] c"my string!\00"
+//CHECK: @[[MYSTR:.*]] = {{.*}} unnamed_addr constant [11 x i8] c"my string!\00"
 //CHECK: @s = global i8* getelementptr inbounds ([11 x i8]* @[[MYSTR]], i32 0, i32 0), section ".data2"
 //CHECK: @c = global i32 1, section ".my_seg"
 //CHECK: @d = global i32 1, section ".data"