Skip to content

Commit

Permalink
These tests are intended to run in NeXt's legacy objective-c abi (fra…
Browse files Browse the repository at this point in the history
…gile-abi).

Make this explicit since default is now nonfragile-abi.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149787 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Fariborz Jahanian committed Feb 4, 2012
1 parent 90feede commit dcc8e3f
Show file tree
Hide file tree
Showing 43 changed files with 44 additions and 44 deletions.
2 changes: 1 addition & 1 deletion test/Rewriter/blockstruct.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -x objective-c -Wno-return-type -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp
// RUN: %clang_cc1 -x objective-c -Wno-return-type -fblocks -fms-extensions -rewrite-objc -fobjc-fragile-abi %s -o %t-rw.cpp
// RUN: %clang_cc1 -fsyntax-only -fblocks -Wno-address-of-temporary -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
// rdar://8918702

Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/crash.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -rewrite-objc -o - %s
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi -o - %s
// rdar://5950938
@interface NSArray {}
+ (id)arrayWithObjects:(id)firstObj, ...;
Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/finally.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -rewrite-objc -fobjc-exceptions -verify %s -o -
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi -fobjc-exceptions -verify %s -o -

int main() {
@try {
Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/id-test-3.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -rewrite-objc %s -o -
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi %s -o -

@protocol P
- (id<P>) Meth: (id<P>) Arg;
Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/ivar-encoding-1.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -rewrite-objc %s -o -
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi %s -o -

@interface Intf
{
Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/ivar-encoding-2.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -rewrite-objc %s -o -
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi %s -o -

@implementation Intf
{
Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/metadata-test-1.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -rewrite-objc %s -o -
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi %s -o -

@interface Intf
@end
Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/metadata-test-2.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -rewrite-objc %s -o -
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi %s -o -

typedef struct _NSPoint {
float x;
Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/method-encoding-1.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -rewrite-objc %s -o -
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi %s -o -

@protocol P1
- (void) MyProtoMeth : (int **) arg1 : (void*) arg2;
Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/objc-encoding-bug-1.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -rewrite-objc %s -o -
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi %s -o -

typedef struct NSMethodFrameArgInfo {
struct NSMethodFrameArgInfo *subInfo;
Expand Down
4 changes: 2 additions & 2 deletions test/Rewriter/objc-ivar-receiver-1.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %clang_cc1 -rewrite-objc %s -o -
// RUN: %clang_cc1 -rewrite-objc %s -o - | grep 'newInv->_container'
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi %s -o -
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi %s -o - | grep 'newInv->_container'

@interface NSMutableArray
- (void)addObject:(id)addObject;
Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/objc-string-concat-1.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -rewrite-objc %s -o -
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi %s -o -

@class NSString;

Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/objc-super-test.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -rewrite-objc %s -o - | grep objc_msgSendSuper | grep MainMethod
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi %s -o - | grep objc_msgSendSuper | grep MainMethod

typedef struct objc_selector *SEL;
typedef struct objc_object *id;
Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/objc-synchronized-1.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -rewrite-objc %s -o -
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi %s -o -

id SYNCH_EXPR();
void SYNCH_BODY();
Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/properties.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -x objective-c -Wno-return-type -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp
// RUN: %clang_cc1 -x objective-c -Wno-return-type -fblocks -fms-extensions -rewrite-objc -fobjc-fragile-abi %s -o %t-rw.cpp
// RUN: %clang_cc1 -fsyntax-only -fms-extensions -Wno-address-of-temporary -Did="void *" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp

void *sel_registerName(const char *);
Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/protocol-rewrite-1.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -rewrite-objc %s -o -
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi %s -o -

typedef struct MyWidget {
int a;
Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/protocol-rewrite-2.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -rewrite-objc %s -o %t.cpp
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi %s -o %t.cpp
// RUN: %clang_cc1 -fsyntax-only %t.cpp

// rdar://10234024
Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/rewrite-anonymous-union.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -rewrite-objc -o - %s
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi -o - %s
// rdar://6948022

typedef unsigned int uint32_t;
Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/rewrite-api-bug.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -rewrite-objc %s -o -
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi %s -o -

@interface MyDerived
- (void) instanceMethod;
Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/rewrite-block-argument.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -x objective-c -Wno-return-type -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp
// RUN: %clang_cc1 -x objective-c -Wno-return-type -fblocks -fms-extensions -rewrite-objc -fobjc-fragile-abi %s -o %t-rw.cpp
// RUN: %clang_cc1 -Wno-address-of-temporary -Did="void *" -D"SEL=void*" -D"__declspec(X)=" -emit-llvm -o %t %t-rw.cpp
// radar 7987817

Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/rewrite-block-property.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp
// RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc -fobjc-fragile-abi %s -o %t-rw.cpp
// RUN: %clang_cc1 -fsyntax-only -fblocks -Wno-address-of-temporary -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp

// rdar://9055596
Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/rewrite-eh.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -rewrite-objc -fobjc-exceptions -o - %s
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi -fobjc-exceptions -o - %s
// rdar://7522880

@interface NSException
Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/rewrite-foreach-1.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -rewrite-objc %s -o -
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi %s -o -

@protocol P @end

Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/rewrite-foreach-2.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -rewrite-objc %s -o -
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi %s -o -

@protocol P @end

Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/rewrite-foreach-3.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -rewrite-objc %s -o -
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi %s -o -

@protocol P @end

Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/rewrite-foreach-4.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -rewrite-objc %s -o -
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi %s -o -

@interface MyList
- (id) allKeys;
Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/rewrite-foreach-5.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp
// RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc -fobjc-fragile-abi %s -o %t-rw.cpp
// RUN: %clang_cc1 -fsyntax-only -fblocks -Wno-address-of-temporary -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp

void *sel_registerName(const char *);
Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/rewrite-foreach-6.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp
// RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc -fobjc-fragile-abi %s -o %t-rw.cpp
// RUN: %clang_cc1 -fsyntax-only -fblocks -Wno-address-of-temporary -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
// rdar://5716356
// FIXME: Should be able to pipe into clang, but code is not
Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/rewrite-foreach-7.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -rewrite-objc %s -o -
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi %s -o -

@class NSArray;
int main() {
Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/rewrite-foreach-protocol-id.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp
// RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc -fobjc-fragile-abi %s -o %t-rw.cpp
// RUN: %clang_cc1 -fsyntax-only -fblocks -Wno-address-of-temporary -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
// rdar:// 9039342

Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/rewrite-forward-class.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -x objective-c -Wno-return-type -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp
// RUN: %clang_cc1 -x objective-c -Wno-return-type -fblocks -fms-extensions -rewrite-objc -fobjc-fragile-abi %s -o %t-rw.cpp
// RUN: %clang_cc1 -fsyntax-only -fblocks -Wno-address-of-temporary -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
// rdar://6969189

Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/rewrite-ivar-use.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -rewrite-objc -fms-extensions %s -o -
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi -fms-extensions %s -o -
// radar 7490331

@interface Foo {
Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/rewrite-nest.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -rewrite-objc %s -o -
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi %s -o -

@interface NSMapTable @end
@interface NSEnumerator @end
Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/rewrite-protocol-type-1.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -rewrite-objc %s -o -
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi %s -o -

@protocol MyProto1
@end
Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/rewrite-try-catch.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -rewrite-objc %s -o -
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi %s -o -

@interface Foo @end
@interface GARF @end
Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/rewrite-vararg.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp
// RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc -fobjc-fragile-abi %s -o %t-rw.cpp
// RUN: %clang_cc1 -fsyntax-only -fblocks -Wno-address-of-temporary -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp

// rdar://9056351
Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/rewrite-weak-attr.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -triple i686-pc-win32 -fms-extensions -fblocks -Dnil=0 -rewrite-objc -o - %s
// RUN: %clang_cc1 -triple i686-pc-win32 -fms-extensions -fblocks -Dnil=0 -rewrite-objc -fobjc-fragile-abi -o - %s
int main() {
__weak __block id foo = nil;
__block id foo2 = nil;
Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/static-type-protocol-1.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -rewrite-objc %s -o -
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi %s -o -

@protocol Proto
- (void) ProtoDidget;
Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/undecl-objc-h.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -rewrite-objc %s -o -
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi %s -o -

typedef struct S {
int * pint;
Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/undeclared-method-1.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -rewrite-objc %s -o -
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi %s -o -

@interface Derived @end

Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/undef-field-reference-1.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -rewrite-objc %s -o -
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi %s -o -

@interface MyDerived
{
Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/va-method.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -rewrite-objc %s -o -
// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi %s -o -

#include <stdarg.h>

Expand Down
2 changes: 1 addition & 1 deletion test/Rewriter/weak_byref_objects.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clang_cc1 -fblocks -triple i386-apple-darwin9 -fobjc-gc -rewrite-objc %s -o -
// RUN: %clang_cc1 -fblocks -triple i386-apple-darwin9 -fobjc-gc -rewrite-objc -fobjc-fragile-abi %s -o -

#define nil 0
int main() {
Expand Down

0 comments on commit dcc8e3f

Please sign in to comment.