Tests use the new clang.

llvm-svn: 91290
This commit is contained in:
Fariborz Jahanian 2009-12-14 17:13:18 +00:00
parent 163fb26927
commit 4ee3981574
102 changed files with 123 additions and 123 deletions

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -emit-llvm -o %t %s
// RUN: clang -cc1 -emit-llvm -o %t %s
@protocol P @end

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -o %t -w -g %s
// RUN: clang -cc1 -o %t -w -g %s
@class NSString;

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple i386-apple-darwin9 -g -emit-llvm %s -o - | FileCheck %s
// RUN: clang -cc1 -triple i386-apple-darwin9 -g -emit-llvm %s -o - | FileCheck %s
// PR4894
//
// This test is actually just making sure we can generate the debug info for the

View File

@ -1,6 +1,6 @@
// RUN: clang-cc -triple x86_64-apple-darwin9 -emit-llvm -o %t %s
// RUN: clang-cc -triple i386-apple-darwin9 -emit-llvm -o %t %s
// RUN: clang-cc -triple i386-pc-linux-gnu -emit-llvm -o %t %s
// RUN: clang -cc1 -triple x86_64-apple-darwin9 -emit-llvm -o %t %s
// RUN: clang -cc1 -triple i386-apple-darwin9 -emit-llvm -o %t %s
// RUN: clang -cc1 -triple i386-pc-linux-gnu -emit-llvm -o %t %s
@interface Object
- (id) alloc;

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -emit-llvm -o %t %s
// RUN: clang -cc1 -emit-llvm -o %t %s
@interface INTF
{

View File

@ -1,5 +1,5 @@
// RUNX: llvm-gcc -m64 -emit-llvm -S -o %t %s &&
// RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -emit-llvm -o %t %s
// RUN: clang -cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -emit-llvm -o %t %s
// RUN: grep -F '@"OBJC_IVAR_$_I0._b0" = global i64 0, section "__DATA, __objc_const", align 8' %t
// RUN: grep -F '@"OBJC_IVAR_$_I0._b1" = global i64 0, section "__DATA, __objc_const", align 8' %t
// RUN: grep -F '@"OBJC_IVAR_$_I0._b2" = global i64 1, section "__DATA, __objc_const", align 8' %t

View File

@ -1,4 +1,4 @@
// RUN: clang-cc %s -emit-llvm -o %t -fobjc-gc -fblocks -triple i386-apple-darwin10
// RUN: clang -cc1 %s -emit-llvm -o %t -fobjc-gc -fblocks -triple i386-apple-darwin10
// RUN: grep "_Block_object_dispose" %t | count 6
// RUN: grep "__copy_helper_block_" %t | count 4
// RUN: grep "__destroy_helper_block_" %t | count 4

View File

@ -1,4 +1,4 @@
// RUN: clang-cc %s -emit-llvm -o %t -fobjc-gc -fblocks -triple i386-apple-darwin10
// RUN: clang -cc1 %s -emit-llvm -o %t -fobjc-gc -fblocks -triple i386-apple-darwin10
// RUN: grep "objc_assign_strongCast" %t | count 2
// This should generate a strong cast.

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple x86_64-apple-darwin9 -emit-llvm -fblocks -o %t %s
// RUN: clang -cc1 -triple x86_64-apple-darwin9 -emit-llvm -fblocks -o %t %s
// RUN: grep 'object_assign' %t | count 11
// RUN: grep 'object_dispose' %t | count 29

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple i386-apple-darwin9 -emit-llvm -fblocks -o %t %s
// RUN: clang -cc1 -triple i386-apple-darwin9 -emit-llvm -fblocks -o %t %s
// rdar://6676764
struct S {

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -emit-llvm -o %t %s
// RUN: clang -cc1 -emit-llvm -o %t %s
@interface BASE
+ (int) BaseMeth;

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -emit-llvm -o %t %s
// RUN: clang -cc1 -emit-llvm -o %t %s
@interface Test { }
+ (Test *)crash;

View File

@ -1,6 +1,6 @@
// RUN: clang-cc -triple x86_64-unknown-unknown -emit-llvm -o - %s
// RUN: clang-cc -triple i386-apple-darwin9 -emit-llvm -o - %s
// RUN: clang-cc -triple x86_64-apple-darwin9 -emit-llvm -o - %s
// RUN: clang -cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s
// RUN: clang -cc1 -triple i386-apple-darwin9 -emit-llvm -o - %s
// RUN: clang -cc1 -triple x86_64-apple-darwin9 -emit-llvm -o - %s
@interface I0 {

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -emit-llvm -o %t %s
// RUN: clang -cc1 -emit-llvm -o %t %s
@interface Int1 @end

View File

@ -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 -cc1 -emit-llvm -o %t %s
// RUN: clang -cc1 -fgnu-runtime -emit-llvm -o %t %s && grep NXConstantString %t | count 1
// RUN: clang -cc1 -fgnu-runtime -fconstant-string-class NSConstantString -emit-llvm -o %t %s && grep NSConstantString %t | count 1
id a = @"Hello World!";

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -emit-llvm -o %t %s
// RUN: clang -cc1 -emit-llvm -o %t %s
@interface Object
- (id)new;

View File

@ -1,6 +1,6 @@
// RUN: clang-cc %s -emit-llvm -o %t -triple i386-apple-darwin10
// RUN: clang -cc1 %s -emit-llvm -o %t -triple i386-apple-darwin10
// RUN: grep "llvm.used" %t | count 1
// RUN: clang-cc %s -emit-llvm -o %t -triple x86_64-apple-darwin10
// RUN: clang -cc1 %s -emit-llvm -o %t -triple x86_64-apple-darwin10
// RUN: grep "llvm.used" %t | count 1

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -g -S -o %t %s
// RUN: clang -cc1 -g -S -o %t %s
// RUN: not grep 001 %t
@interface F

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -emit-llvm -o %t %s
// RUN: clang -cc1 -emit-llvm -o %t %s
int printf(const char *, ...);

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -emit-llvm -o %t %s
// RUN: clang -cc1 -emit-llvm -o %t %s
int printf(const char *, ...);

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple=i686-apple-darwin9 -emit-llvm -o %t %s
// RUN: clang -cc1 -triple=i686-apple-darwin9 -emit-llvm -o %t %s
// RUN: grep -e "{Base=b2b3b4b5}" %t | count 1
// RUN: grep -e "{Derived=b2b3b4b5b5b4b3}" %t | count 1

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple=i686-apple-darwin9 -emit-llvm -o %t %s
// RUN: clang -cc1 -triple=i686-apple-darwin9 -emit-llvm -o %t %s
// RUN: grep -e "@\\\22<X>\\\22" %t
// RUN: grep -e "@\\\22<X><Y>\\\22" %t
// RUN: grep -e "@\\\22<X><Y><Z>\\\22" %t

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple=i686-apple-darwin9 -emit-llvm -o %t %s
// RUN: clang -cc1 -triple=i686-apple-darwin9 -emit-llvm -o %t %s
// RUN: grep -e "\^i" %t | count 1
// RUN: grep -e "\[0i\]" %t | count 1

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -emit-llvm -o - %s -O2 | grep "ret i32 1"
// RUN: clang -cc1 -emit-llvm -o - %s -O2 | grep "ret i32 1"
int a() {
return @encode(int) == @encode(int);

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple=x86_64-apple-darwin9 -emit-llvm -o %t %s
// RUN: clang -cc1 -triple=x86_64-apple-darwin9 -emit-llvm -o %t %s
// RUN: grep ji.00 %t | count 1
char *a = @encode(_Complex int);

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple=i686-apple-darwin9 -emit-llvm -o %t %s
// RUN: clang -cc1 -triple=i686-apple-darwin9 -emit-llvm -o %t %s
// RUN: grep -e "\^{Innermost=CC}" %t | count 1
// RUN: grep -e "{Derived=#ib32b8b3b8sb16b8b8b2b8ccb6}" %t | count 1
// RUN: grep -e "{B1=#@c}" %t | count 1

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -emit-llvm %s -o %t
// RUN: clang -cc1 -emit-llvm %s -o %t
void p(const char*, ...);

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -fobjc-nonfragile-abi -emit-llvm -o %t %s
// RUN: clang -cc1 -fobjc-nonfragile-abi -emit-llvm -o %t %s
@interface BASE {
@private

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -fvisibility hidden -fobjc-nonfragile-abi -emit-llvm -o - %s | FileCheck %s
// RUN: clang -cc1 -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

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -emit-llvm -o %t %s
// RUN: clang -cc1 -emit-llvm -o %t %s
__attribute__((visibility("hidden")))
@interface Hidden

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -emit-llvm -o %t %s
// RUN: clang -cc1 -emit-llvm -o %t %s
typedef struct objc_class *Class;

View File

@ -1,2 +1,2 @@
// RUN: clang-cc -triple x86_64-apple-darwin-10 -emit-llvm -o %t %s
// RUN: clang -cc1 -triple x86_64-apple-darwin-10 -emit-llvm -o %t %s
// RUN: grep -F '@"\01L_OBJC_IMAGE_INFO" = internal constant [2 x i32] [i32 0, i32 16], section "__OBJC, __image_info,regular"' %t

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple x86_64-apple-darwin9 -emit-llvm -o %t %s
// RUN: clang -cc1 -triple x86_64-apple-darwin9 -emit-llvm -o %t %s
// RUN: grep -F 'declare i8* @objc_msgSend(...)' %t
typedef struct objc_selector *SEL;

View File

@ -1,5 +1,5 @@
// RUN: clang-cc -emit-llvm -triple=i686-apple-darwin8 -o %t %s
// RUNX: clang-cc -emit-llvm -o %t %s
// RUN: clang -cc1 -emit-llvm -triple=i686-apple-darwin8 -o %t %s
// RUNX: clang -cc1 -emit-llvm -o %t %s
@interface A
-(void) setOk:(int)arg;

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -emit-llvm -o %t %s
// RUN: clang -cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -emit-llvm -o %t %s
// RUNX: llvm-gcc -m64 -emit-llvm -S -o %t %s &&
// RUN: grep '@"OBJC_IVAR_$_I3._iv2" = global i64 8, section "__DATA, __objc_const", align 8' %t

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple i386-apple-darwin9 -O3 -emit-llvm -o %t %s
// RUN: clang -cc1 -triple i386-apple-darwin9 -O3 -emit-llvm -o %t %s
// RUN: grep 'ret i32 385' %t
void *alloca();

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple x86_64-apple-darwin9 -fobjc-gc -emit-llvm -o %t %s
// RUN: clang -cc1 -triple x86_64-apple-darwin9 -fobjc-gc -emit-llvm -o %t %s
@interface I
{
struct {

View File

@ -1,5 +1,5 @@
// RUNX: llvm-gcc -m64 -fobjc-gc -emit-llvm -S -o %t %s &&
// RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fobjc-gc -emit-llvm -o %t %s
// RUN: clang -cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fobjc-gc -emit-llvm -o %t %s
// RUN: grep '@"\\01L_OBJC_CLASS_NAME_.*" = internal global .* c"A\\00"' %t
// RUN: grep '@"\\01L_OBJC_CLASS_NAME_.*" = internal global .* c"\\11q\\10\\00"' %t
// RUN: grep '@"\\01L_OBJC_CLASS_NAME_.*" = internal global .* c"!q\\00"' %t

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -fobjc-gc -triple x86_64-apple-darwin -O0 -S %s -o %t-64.s
// RUN: clang -cc1 -fobjc-gc -triple x86_64-apple-darwin -O0 -S %s -o %t-64.s
// RUN: FileCheck -check-prefix LP64 --input-file=%t-64.s %s
@interface NSObject {

View File

@ -1,5 +1,5 @@
// RUN: clang-cc -triple x86_64-apple-darwin9 -emit-llvm -o - %s
// RUN: clang-cc -triple i386-apple-darwin9 -emit-llvm -o - %s
// RUN: clang -cc1 -triple x86_64-apple-darwin9 -emit-llvm -o - %s
// RUN: clang -cc1 -triple i386-apple-darwin9 -emit-llvm -o - %s
// rdar://6800926
@interface ITF {

View File

@ -1,8 +1,8 @@
// RUN: clang-cc -triple i386-apple-darwin9 -emit-llvm -o %t %s
// RUN: clang -cc1 -triple i386-apple-darwin9 -emit-llvm -o %t %s
// RUN: grep '.lazy_reference .objc_class_name_A' %t | count 1
// RUN: grep '.lazy_reference .objc_class_name_Unknown' %t | count 1
// RUN: grep '.lazy_reference .objc_class_name_Protocol' %t | count 1
// RUN: clang-cc -triple i386-apple-darwin9 -DWITH_IMPL -emit-llvm -o %t %s
// RUN: clang -cc1 -triple i386-apple-darwin9 -DWITH_IMPL -emit-llvm -o %t %s
// RUN: grep '.lazy_reference .objc_class_name_Root' %t | count 1
@interface Root

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -emit-llvm -o %t %s
// RUN: clang -cc1 -emit-llvm -o %t %s
void f0(id a) {
// This should have an implicit cast

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -emit-llvm -o %t %s
// RUN: clang -cc1 -emit-llvm -o %t %s
int printf(const char *, ...);

View File

@ -1,8 +1,8 @@
// RUN: clang-cc -emit-llvm -o %t %s
// RUN: clang -cc1 -emit-llvm -o %t %s
// RUN: grep "objc_msgSend" %t | count 6
// RUN: clang-cc -fgnu-runtime -emit-llvm -o %t %s
// RUN: clang -cc1 -fgnu-runtime -emit-llvm -o %t %s
// RUN: grep "objc_msg_lookup" %t | count 6
// RUN: clang-cc -fgnu-runtime -fobjc-nonfragile-abi -emit-llvm -o %t %s
// RUN: clang -cc1 -fgnu-runtime -fobjc-nonfragile-abi -emit-llvm -o %t %s
// RUN: grep "objc_msg_lookup_sender" %t | count 6
typedef struct {

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple i386-apple-darwin9 -emit-llvm -o %t %s
// RUN: clang -cc1 -triple i386-apple-darwin9 -emit-llvm -o %t %s
// RUNX: llvm-gcc -m32 -emit-llvm -S -o %t %s &&
// RUN: grep '@"\\01L_OBJC_CATEGORY_A_Cat" = internal global .*section "__OBJC,__category,regular,no_dead_strip", align 4' %t

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -emit-llvm -o %t %s
// RUN: clang -cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -emit-llvm -o %t %s
// RUNX: llvm-gcc -m64 -emit-llvm -S -o %t %s &&
// RUN: grep '@"OBJC_CLASS_$_A" = global' %t

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -fobjc-nonfragile-abi -emit-llvm -o %t %s
// RUN: clang -cc1 -fobjc-nonfragile-abi -emit-llvm -o %t %s
// RUN: grep '@"OBJC_METACLASS_$_A" = global .*section "__DATA, __objc_data", align 8' %t
// RUN: grep '@"OBJC_CLASS_$_A" = global .*section "__DATA, __objc_data", align 8' %t
@ -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 -cc1 -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

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple i386-apple-darwin9 -emit-llvm %s -o - | FileCheck %s
// RUN: clang -cc1 -triple i386-apple-darwin9 -emit-llvm %s -o - | FileCheck %s
@interface I0
@end

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -emit-llvm -o %t %s
// RUN: clang -cc1 -emit-llvm -o %t %s
@interface Object
- (id) new;

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple x86_64-unknown-unknown -emit-llvm -o %t %s
// RUN: clang -cc1 -triple x86_64-unknown-unknown -emit-llvm -o %t %s
@interface NSObject
@end

View File

@ -1,5 +1,5 @@
// RUNX: llvm-gcc -m64 -emit-llvm -S -o %t %s &&
// RUN: clang-cc -fobjc-nonfragile-abi -emit-llvm -o %t %s
// RUN: clang -cc1 -fobjc-nonfragile-abi -emit-llvm -o %t %s
// RUN: grep '@".01L_OBJC_LABEL_NONLAZY_CLASS_$" = internal global \[1 x .*\] .*@"OBJC_CLASS_$_A".*, section "__DATA, __objc_nlclslist, regular, no_dead_strip", align 8' %t
// RUN: grep '@".01L_OBJC_LABEL_NONLAZY_CATEGORY_$" = internal global \[1 x .*\] .*@".01l_OBJC_$_CATEGORY_A_$_Cat".*, section "__DATA, __objc_nlcatlist, regular, no_dead_strip", align 8' %t

View File

@ -1,7 +1,7 @@
// 32-bit
// RUNX: llvm-gcc -m32 -emit-llvm -S -o %t %s &&
// RUN: clang-cc -triple i386-apple-darwin9 -emit-llvm -o %t %s
// RUN: clang -cc1 -triple i386-apple-darwin9 -emit-llvm -o %t %s
// RUN: grep '@"\\01L_OBJC_CATEGORY_A_Cat" = internal global .*, section "__OBJC,__category,regular,no_dead_strip", align 4' %t
// RUN: grep '@"\\01L_OBJC_CLASS_A" = internal global .*, section "__OBJC,__class,regular,no_dead_strip", align 4' %t
// RUN: grep '@"\\01L_OBJC_CLASS_C" = internal global .*, section "__OBJC,__class,regular,no_dead_strip", align 4' %t
@ -14,7 +14,7 @@
// 64-bit
// RUNX: clang-cc -triple i386-apple-darwin9 -emit-llvm -o %t %s &&
// RUNX: clang -cc1 -triple i386-apple-darwin9 -emit-llvm -o %t %s &&
// RUNX: grep '@"OBJC_CLASS_$_A" = global' %t &&
// RUNX: grep '@"OBJC_CLASS_$_C" = global' %t &&
// RUNX: grep '@"OBJC_METACLASS_$_A" = global' %t &&

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o %t %s
// RUN: clang -cc1 -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o %t %s
// RUN: grep -F '@objc_assign_ivar' %t | count 14
typedef struct {

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -fobjc-gc -emit-llvm -o %t %s
// RUN: clang -cc1 -fobjc-gc -emit-llvm -o %t %s
// RUN: grep objc_memmove_collectable %t | grep call | count 3
static int count;

View File

@ -1,6 +1,6 @@
// RUN: clang-cc -fblocks -fobjc-gc -triple x86_64-apple-darwin -S %s -o %t-64.s
// RUN: clang -cc1 -fblocks -fobjc-gc -triple x86_64-apple-darwin -S %s -o %t-64.s
// RUN: FileCheck -check-prefix LP64 --input-file=%t-64.s %s
// RUN: clang-cc -fblocks -fobjc-gc -triple i386-apple-darwin -S %s -o %t-32.s
// RUN: clang -cc1 -fblocks -fobjc-gc -triple i386-apple-darwin -S %s -o %t-32.s
// RUN: FileCheck -check-prefix LP32 --input-file=%t-32.s %s
@interface NSObject

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o %t %s
// RUN: clang -cc1 -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o %t %s
// RUN: grep -F '@objc_assign_global' %t | count 26
@class NSObject;

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -fobjc-nonfragile-abi -fobjc-gc -emit-llvm -o %t %s
// RUN: clang -cc1 -fobjc-nonfragile-abi -fobjc-gc -emit-llvm -o %t %s
// RUN: grep objc_assign_ivar %t | count 6
@interface I @end

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple x86_64-apple-darwin10 -fblocks -fobjc-gc -emit-llvm -o %t %s
// RUN: clang -cc1 -triple x86_64-apple-darwin10 -fblocks -fobjc-gc -emit-llvm -o %t %s
// RUN: grep -F '@objc_assign_strongCast' %t | count 4
@interface DSATextSearch @end

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -emit-llvm -o %t %s
// RUN: clang -cc1 -emit-llvm -o %t %s
@interface PDFViewPrivateVars
{

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple x86_64-apple-darwin9 -fobjc-gc -emit-llvm -o %t %s
// RUN: clang -cc1 -triple x86_64-apple-darwin9 -fobjc-gc -emit-llvm -o %t %s
// RUN: grep 'objc_assign' %t | count 0
typedef struct {

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple=i686-apple-darwin9 -emit-llvm -o %t %s
// RUN: clang -cc1 -triple=i686-apple-darwin9 -emit-llvm -o %t %s
// RUN: grep -e "T@\\\\22NSString\\\\22" %t
@interface NSString @end

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple=i686-apple-darwin9 -emit-llvm -o %t %s
// RUN: clang -cc1 -triple=i686-apple-darwin9 -emit-llvm -o %t %s
// RUN: grep -e "T@\\\22<X>\\\22" %t
// RUN: grep -e "T@\\\22<X><Y>\\\22" %t
// RUN: grep -e "T@\\\22<X><Y><Z>\\\22" %t

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple x86_64-unknown-unknown -fobjc-gc-only -emit-llvm -o %t %s
// RUN: clang -cc1 -triple x86_64-unknown-unknown -fobjc-gc-only -emit-llvm -o %t %s
@interface I0 {
I0 *_f0;

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple x86_64-unknown-unknown -fobjc-gc -emit-llvm -o %t %s
// RUN: clang -cc1 -triple x86_64-unknown-unknown -fobjc-gc -emit-llvm -o %t %s
@interface I {
__attribute__((objc_gc(strong))) int *i_IdocumentIDs;

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -fobjc-gc -emit-llvm -o %t %s
// RUN: clang -cc1 -fobjc-gc -emit-llvm -o %t %s
@interface I {
__attribute__((objc_gc(strong))) signed long *_documentIDs;

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple x86_64-apple-darwin9 -fobjc-gc -emit-llvm -o %t %s
// RUN: clang -cc1 -triple x86_64-apple-darwin9 -fobjc-gc -emit-llvm -o %t %s
// RUN: grep -e "objc_assign_weak" %t | grep -e "call" | count 6
__weak id* x;

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple i386-apple-darwin9 -fobjc-gc -emit-llvm -o %t %s
// RUN: clang -cc1 -triple i386-apple-darwin9 -fobjc-gc -emit-llvm -o %t %s
@interface PBXTarget
{

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -fobjc-nonfragile-abi -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck -check-prefix=CHECK-X86-64 %s
// RUN: clang -cc1 -fobjc-nonfragile-abi -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck -check-prefix=CHECK-X86-64 %s
__attribute__((weak_import)) @interface WeakRootClass @end

View File

@ -1,5 +1,5 @@
// RUN: clang-cc -triple x86_64-apple-darwin9 -fobjc-gc -g -emit-llvm -o - %s
// RUN: clang-cc -triple i386-apple-darwin9 -fobjc-gc -g -emit-llvm -o - %s
// RUN: clang -cc1 -triple x86_64-apple-darwin9 -fobjc-gc -g -emit-llvm -o - %s
// RUN: clang -cc1 -triple i386-apple-darwin9 -fobjc-gc -g -emit-llvm -o - %s
// rdar://7252252
@interface Loop {

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple x86_64-apple-darwin9 -fobjc-gc -emit-llvm -o %t %s
// RUN: clang -cc1 -triple x86_64-apple-darwin9 -fobjc-gc -emit-llvm -o %t %s
@class NSObject;
@interface Foo {

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o %t %s
// RUN: clang -cc1 -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o %t %s
// RUN: grep -F '@objc_assign_global' %t | count 7
// RUN: grep -F '@objc_assign_ivar' %t | count 5
// RUN: grep -F '@objc_assign_strongCast' %t | count 8

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fblocks -fobjc-gc -emit-llvm -o %t %s
// RUN: clang -cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fblocks -fobjc-gc -emit-llvm -o %t %s
// RUN: grep objc_assign_ivar %t | count 3
// RUN: grep objc_assign_strongCast %t | count 6

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o %t %s
// RUN: clang -cc1 -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o %t %s
// RUN: grep objc_assign_global %t | count 3
// RUN: grep objc_assign_strongCast %t | count 2

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o %t %s
// RUN: clang -cc1 -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o %t %s
// RUN: grep objc_assign_ivar %t | count 0
// RUN: grep objc_assign_strongCast %t | count 5

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o %t %s
// RUN: clang -cc1 -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o %t %s
// RUN: grep -F '@objc_assign_global' %t | count 21
// RUN: grep -F '@objc_assign_ivar' %t | count 11

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple i386-apple-darwin9 -emit-llvm %s -o %t
// RUN: clang -cc1 -triple i386-apple-darwin9 -emit-llvm %s -o %t
@interface Foo
{

View File

@ -1,5 +1,5 @@
// rdar://6657613
// RUN: clang-cc -emit-llvm %s -o %t
// RUN: clang -cc1 -emit-llvm %s -o %t
@class C;

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple i386-apple-darwin9 %s -emit-llvm -o - | FileCheck %s
// RUN: clang -cc1 -triple i386-apple-darwin9 %s -emit-llvm -o - | FileCheck %s
// CHECK: @"__func__.-[Foo instanceTest1]" = private constant [21 x i8] c"-[Foo instanceTest1]\00"
// CHECK: @"__func__.-[Foo instanceTest2:]" = private constant [22 x i8] c"-[Foo instanceTest2:]\00"

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -emit-llvm -o %t %s
// RUN: clang -cc1 -emit-llvm -o %t %s
@interface Object
- (id) new;

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -emit-llvm -o %t %s
// RUN: clang -cc1 -emit-llvm -o %t %s
typedef struct {
unsigned f0;

View File

@ -1,5 +1,5 @@
// RUN: clang-cc -triple i386-apple-darwin9 -emit-llvm -S -o - %s
// RUN: clang-cc -triple x86_64-apple-darwin9 -emit-llvm -S -o - %s
// RUN: clang -cc1 -triple i386-apple-darwin9 -emit-llvm -S -o - %s
// RUN: clang -cc1 -triple x86_64-apple-darwin9 -emit-llvm -S -o - %s
@interface I0 {
@public

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -emit-llvm -o %t %s
// RUN: clang -cc1 -emit-llvm -o %t %s
@protocol NSObject
- (void *)description;

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -emit-llvm -o %t %s
// RUN: clang -cc1 -emit-llvm -o %t %s
@interface Object
- (id) new;

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -fobjc-nonfragile-abi -emit-llvm -o - %s
// RUN: clang -cc1 -fobjc-nonfragile-abi -emit-llvm -o - %s
// FIXME. Test is incomplete.
@protocol P

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -emit-llvm -triple=i686-apple-darwin8 -o %t %s
// RUN: clang -cc1 -emit-llvm -triple=i686-apple-darwin8 -o %t %s
// RUN: grep -e "SiSetOtherThings:" %t
@interface A

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -emit-llvm -o %t %s
// RUN: clang -cc1 -emit-llvm -o %t %s
int printf(const char *, ...);

View File

@ -1,6 +1,6 @@
// RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -S %s -o %t-64.s
// RUN: clang -cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -S %s -o %t-64.s
// RUN: FileCheck -check-prefix LP64 --input-file=%t-64.s %s
// RUN: clang-cc -triple i386-apple-darwin -S %s -o %t-32.s
// RUN: clang -cc1 -triple i386-apple-darwin -S %s -o %t-32.s
// RUN: FileCheck -check-prefix LP32 --input-file=%t-32.s %s
@protocol MyProtocol

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -fobjc-nonfragile-abi -emit-llvm -o %t %s
// RUN: clang -cc1 -fobjc-nonfragile-abi -emit-llvm -o %t %s
@interface BaseClass {
id _delegate;

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -emit-llvm -triple=i686-apple-darwin8 -o %t %s
// RUN: clang -cc1 -emit-llvm -triple=i686-apple-darwin8 -o %t %s
// RUNX: llvm-gcc -S -emit-llvm -o %t %s &&
// No object generated

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -emit-llvm %s -o %t
// RUN: clang -cc1 -emit-llvm %s -o %t
void p(const char*, ...);

View File

@ -1,6 +1,6 @@
// RUN: clang-cc -emit-llvm -o %t %s
// RUN: clang -cc1 -emit-llvm -o %t %s
// RUN: grep -e "^de.*objc_msgSend[0-9]*(" %t | count 1
// RUN: clang-cc -DWITHDEF -emit-llvm -o %t %s
// RUN: clang -cc1 -DWITHDEF -emit-llvm -o %t %s
// RUN: grep -e "^de.*objc_msgSend[0-9]*(" %t | count 1
id objc_msgSend(int x);

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -emit-llvm -o %t %s
// RUN: clang -cc1 -emit-llvm -o %t %s
// pr5025
// radar 7405040

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -emit-llvm -o %t %s
// RUN: clang -cc1 -emit-llvm -o %t %s
@interface SUPER
+ (void)Meth;

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -emit-llvm -o %t %s
// RUN: clang -cc1 -emit-llvm -o %t %s
@interface B
{

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -triple i386-apple-darwin9 -emit-llvm %s -o - | FileCheck %s
// RUN: clang -cc1 -triple i386-apple-darwin9 -emit-llvm %s -o - | FileCheck %s
@class Some;

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -emit-llvm -triple=i686-apple-darwin9 -o %t %s -O2
// RUN: clang -cc1 -emit-llvm -triple=i686-apple-darwin9 -o %t %s -O2
// RUN: grep 'ret i32' %t | count 1
// RUN: grep 'ret i32 1' %t | count 1

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -fobjc-nonfragile-abi -emit-llvm -o %t %s
// RUN: clang -cc1 -fobjc-nonfragile-abi -emit-llvm -o %t %s
// RUN: grep '@"OBJC_IVAR_$_XCOrganizerDeviceNodeInfo.viewController"' %t
@interface XCOrganizerNodeInfo

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -fobjc-nonfragile-abi -emit-llvm -o %t %s
// RUN: clang -cc1 -fobjc-nonfragile-abi -emit-llvm -o %t %s
@interface I
@property int IP;

View File

@ -1,5 +1,5 @@
// RUN: clang-cc %s -S -o - -triple=i686-apple-darwin9
// RUN: clang-cc %s -S -o - -triple=x86_64-apple-darwin9
// RUN: clang -cc1 %s -S -o - -triple=i686-apple-darwin9
// RUN: clang -cc1 %s -S -o - -triple=x86_64-apple-darwin9
// rdar://6757213 - Don't crash if the internal proto for
// __objc_personality_v0 mismatches with an actual one.

View File

@ -1,4 +1,4 @@
// RUN: clang-cc -emit-llvm-only -fgnu-runtime %s
// RUN: clang -cc1 -emit-llvm-only -fgnu-runtime %s
@protocol MadeUpProtocol;

Some files were not shown because too many files have changed in this diff Show More