forked from OSchip/llvm-project
Use '-FOO' 'BAR' instead of '-FOO=BAR' for FOO in -stack-protector, -fvisibility, and -fconstant-string-class.
llvm-svn: 90072
This commit is contained in:
parent
4e7596cc3a
commit
e97582406b
|
@ -1,8 +1,8 @@
|
|||
// RUN: clang-cc -emit-llvm -o - %s -stack-protector=0 | FileCheck -check-prefix=NOSSP %s
|
||||
// RUN: clang-cc -emit-llvm -o - %s -stack-protector 0 | FileCheck -check-prefix=NOSSP %s
|
||||
// NOSSP: define void @test1(i8* %msg) nounwind {
|
||||
// RUN: clang-cc -emit-llvm -o - %s -stack-protector=1 | FileCheck -check-prefix=WITHSSP %s
|
||||
// RUN: clang-cc -emit-llvm -o - %s -stack-protector 1 | FileCheck -check-prefix=WITHSSP %s
|
||||
// WITHSSP: define void @test1(i8* %msg) nounwind ssp {
|
||||
// RUN: clang-cc -emit-llvm -o - %s -stack-protector=2 | FileCheck -check-prefix=SSPREQ %s
|
||||
// RUN: clang-cc -emit-llvm -o - %s -stack-protector 2 | FileCheck -check-prefix=SSPREQ %s
|
||||
// SSPREQ: define void @test1(i8* %msg) nounwind sspreq {
|
||||
|
||||
int printf(const char * _Format, ...);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang-cc -triple i386-unknown-unknown -fvisibility=default -emit-llvm -o %t %s
|
||||
// RUN: clang-cc -triple i386-unknown-unknown -fvisibility default -emit-llvm -o %t %s
|
||||
// RUN: grep '@g_com = common global i32 0' %t
|
||||
// RUN: grep '@g_def = global i32 0' %t
|
||||
// RUN: grep '@g_ext = external global i32' %t
|
||||
|
@ -6,7 +6,7 @@
|
|||
// RUN: grep 'declare void @f_ext()' %t
|
||||
// RUN: grep 'define internal void @f_deferred()' %t
|
||||
// RUN: grep 'define i32 @f_def()' %t
|
||||
// RUN: clang-cc -triple i386-unknown-unknown -fvisibility=protected -emit-llvm -o %t %s
|
||||
// RUN: clang-cc -triple i386-unknown-unknown -fvisibility protected -emit-llvm -o %t %s
|
||||
// RUN: grep '@g_com = common protected global i32 0' %t
|
||||
// RUN: grep '@g_def = protected global i32 0' %t
|
||||
// RUN: grep '@g_ext = external global i32' %t
|
||||
|
@ -14,7 +14,7 @@
|
|||
// RUN: grep 'declare void @f_ext()' %t
|
||||
// RUN: grep 'define internal void @f_deferred()' %t
|
||||
// RUN: grep 'define protected i32 @f_def()' %t
|
||||
// RUN: clang-cc -triple i386-unknown-unknown -fvisibility=hidden -emit-llvm -o %t %s
|
||||
// RUN: clang-cc -triple i386-unknown-unknown -fvisibility hidden -emit-llvm -o %t %s
|
||||
// RUN: grep '@g_com = common hidden global i32 0' %t
|
||||
// RUN: grep '@g_def = hidden global i32 0' %t
|
||||
// RUN: grep '@g_ext = external global i32' %t
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// RUN: clang-cc -emit-llvm -o %t %s
|
||||
// RUN: clang-cc -fgnu-runtime -emit-llvm -o %t %s && grep NXConstantString %t | count 1
|
||||
// RUN: clang-cc -fgnu-runtime -fconstant-string-class=NSConstantString -emit-llvm -o %t %s && grep NSConstantString %t | count 1
|
||||
// RUN: clang-cc -fgnu-runtime -fconstant-string-class NSConstantString -emit-llvm -o %t %s && grep NSConstantString %t | count 1
|
||||
|
||||
id a = @"Hello World!";
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang-cc -fvisibility=hidden -fobjc-nonfragile-abi -emit-llvm -o - %s | FileCheck %s
|
||||
// RUN: clang-cc -fvisibility hidden -fobjc-nonfragile-abi -emit-llvm -o - %s | FileCheck %s
|
||||
// CHECK: @"OBJC_IVAR_$_I.P" = hidden
|
||||
// CHECK: @"OBJC_CLASS_$_I" = hidden
|
||||
// CHECK: @"OBJC_METACLASS_$_I" = hidden
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
// RUN: grep -F 'define internal void @"\01-[A im0]"' %t
|
||||
// RUN: grep -F 'define internal void @"\01-[A(Cat) im1]"' %t
|
||||
|
||||
// RUN: clang-cc -fobjc-nonfragile-abi -fvisibility=hidden -emit-llvm -o %t %s
|
||||
// RUN: clang-cc -fobjc-nonfragile-abi -fvisibility hidden -emit-llvm -o %t %s
|
||||
|
||||
// RUN: grep '@"OBJC_METACLASS_$_A" = hidden global .*section "__DATA, __objc_data", align 8' %t
|
||||
// RUN: grep '@"OBJC_CLASS_$_A" = hidden global .*section "__DATA, __objc_data", align 8' %t
|
||||
|
|
Loading…
Reference in New Issue