diff options
author | Timur Iskhodzhanov <timurrrr@google.com> | 2014-03-24 10:31:09 +0000 |
---|---|---|
committer | Timur Iskhodzhanov <timurrrr@google.com> | 2014-03-24 10:31:09 +0000 |
commit | 89f588ff73d15d9caaf3923f008d4fb1fa5031ac (patch) | |
tree | 2a35555ee891a6526c00d592b075267858ecb8f3 /clang/test/CodeGen/c-strings.c | |
parent | 276fefb8d945ec1d5027506a07672238db8f0207 (diff) | |
download | bcm5719-llvm-89f588ff73d15d9caaf3923f008d4fb1fa5031ac.tar.gz bcm5719-llvm-89f588ff73d15d9caaf3923f008d4fb1fa5031ac.zip |
Revert r204562,204566,204586,204587 as they broke ASan on Windows
llvm-svn: 204596
Diffstat (limited to 'clang/test/CodeGen/c-strings.c')
-rw-r--r-- | clang/test/CodeGen/c-strings.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/clang/test/CodeGen/c-strings.c b/clang/test/CodeGen/c-strings.c index d82bc2572e4..ff86619117a 100644 --- a/clang/test/CodeGen/c-strings.c +++ b/clang/test/CodeGen/c-strings.c @@ -1,18 +1,14 @@ -// RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm -o - %s | FileCheck %s --check-prefix=CHECK --check-prefix=ITANIUM -// RUN: %clang_cc1 -triple %ms_abi_triple -emit-llvm -o - %s | FileCheck %s --check-prefix=CHECK --check-prefix=MSABI +// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s // Should be 3 hello strings, two global (of different sizes), the rest are // shared. // CHECK: @align = global i8 [[ALIGN:[0-9]+]] -// ITANIUM: @.str = private unnamed_addr constant [6 x i8] c"hello\00" -// MSABI: @"\01??_C@_05CJBACGMB@hello?$AA@" = linkonce_odr unnamed_addr constant [6 x i8] c"hello\00", align 1 -// ITANIUM: @f1.x = internal global i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0) -// MSABI: @f1.x = internal global i8* getelementptr inbounds ([6 x i8]* @"\01??_C@_05CJBACGMB@hello?$AA@", i32 0, i32 0) +// CHECK: @.str = private unnamed_addr constant [6 x i8] c"hello\00" +// CHECK: @f1.x = internal global i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0) // CHECK: @f2.x = internal global [6 x i8] c"hello\00", align [[ALIGN]] // CHECK: @f3.x = internal global [8 x i8] c"hello\00\00\00", align [[ALIGN]] -// ITANIUM: @f4.x = internal global %struct.s { i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0) } -// MSABI: @f4.x = internal global %struct.s { i8* getelementptr inbounds ([6 x i8]* @"\01??_C@_05CJBACGMB@hello?$AA@", i32 0, i32 0) } +// CHECK: @f4.x = internal global %struct.s { i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0) } // CHECK: @x = global [3 x i8] c"ola", align [[ALIGN]] #if defined(__s390x__) @@ -26,8 +22,7 @@ void bar(const char *); // CHECK-LABEL: define void @f0() void f0() { bar("hello"); - // ITANIUM: call void @bar({{.*}} @.str - // MSABI: call void @bar({{.*}} @"\01??_C@_05CJBACGMB@hello?$AA@" + // CHECK: call void @bar({{.*}} @.str } // CHECK-LABEL: define void @f1() |