r205812 - [MS-ABI] Lit fix for r205810

Warren Hunt whunt at google.com
Tue Apr 8 15:49:38 PDT 2014


Author: whunt
Date: Tue Apr  8 17:49:38 2014
New Revision: 205812

URL: http://llvm.org/viewvc/llvm-project?rev=205812&view=rev
Log:
[MS-ABI] Lit fix for r205810
On linux strings have different linkage than on windows.  This 
patch makes the lit test more general.

Modified:
    cfe/trunk/test/CodeGen/sections.c

Modified: cfe/trunk/test/CodeGen/sections.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/sections.c?rev=205812&r1=205811&r2=205812&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/sections.c (original)
+++ cfe/trunk/test/CodeGen/sections.c Tue Apr  8 17:49:38 2014
@@ -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"





More information about the cfe-commits mailing list