[cfe-commits] r54085 - /cfe/trunk/test/SemaObjC/
Chris Lattner
sabre at nondot.org
Fri Jul 25 18:04:40 PDT 2008
Author: lattner
Date: Fri Jul 25 20:04:40 2008
New Revision: 54085
URL: http://llvm.org/viewvc/llvm-project?rev=54085&view=rev
Log:
remove objc prefixes from these tests.
Added:
cfe/trunk/test/SemaObjC/at-defs.m
- copied unchanged from r54084, cfe/trunk/test/SemaObjC/objc-at-defs.m
cfe/trunk/test/SemaObjC/bad-receiver-1.m
- copied unchanged from r54084, cfe/trunk/test/SemaObjC/objc-bad-receiver-1.m
cfe/trunk/test/SemaObjC/comptypes-1.m
- copied unchanged from r54084, cfe/trunk/test/SemaObjC/objc-comptypes-1.m
cfe/trunk/test/SemaObjC/comptypes-2.m
- copied unchanged from r54084, cfe/trunk/test/SemaObjC/objc-comptypes-2.m
cfe/trunk/test/SemaObjC/comptypes-3.m
- copied unchanged from r54084, cfe/trunk/test/SemaObjC/objc-comptypes-3.m
cfe/trunk/test/SemaObjC/comptypes-4.m
- copied unchanged from r54084, cfe/trunk/test/SemaObjC/objc-comptypes-4.m
cfe/trunk/test/SemaObjC/comptypes-5.m
- copied unchanged from r54084, cfe/trunk/test/SemaObjC/objc-comptypes-5.m
cfe/trunk/test/SemaObjC/comptypes-6.m
- copied unchanged from r54084, cfe/trunk/test/SemaObjC/objc-comptypes-6.m
cfe/trunk/test/SemaObjC/comptypes-7.m
- copied unchanged from r54084, cfe/trunk/test/SemaObjC/objc-comptypes-7.m
cfe/trunk/test/SemaObjC/comptypes-8.m
- copied unchanged from r54084, cfe/trunk/test/SemaObjC/objc-comptypes-8.m
cfe/trunk/test/SemaObjC/comptypes-9.m
- copied unchanged from r54084, cfe/trunk/test/SemaObjC/objc-comptypes-9.m
cfe/trunk/test/SemaObjC/comptypes-a.m
- copied unchanged from r54084, cfe/trunk/test/SemaObjC/objc-types-compatible.m
cfe/trunk/test/SemaObjC/interface-1.m
- copied unchanged from r54084, cfe/trunk/test/SemaObjC/objc-interface-1.m
cfe/trunk/test/SemaObjC/interface-layout.m
- copied unchanged from r54084, cfe/trunk/test/SemaObjC/objc-interface-layout.m
cfe/trunk/test/SemaObjC/ivar-lookup.m
- copied unchanged from r54084, cfe/trunk/test/SemaObjC/objc-ivar-lookup.m
cfe/trunk/test/SemaObjC/legacy-implementation-1.m
- copied unchanged from r54084, cfe/trunk/test/SemaObjC/objc-legacy-implementation-1.m
cfe/trunk/test/SemaObjC/method-lookup-2.m
- copied unchanged from r54084, cfe/trunk/test/SemaObjC/objc-method-lookup.m
cfe/trunk/test/SemaObjC/property-1.m
- copied unchanged from r54084, cfe/trunk/test/SemaObjC/objc-property-1.m
cfe/trunk/test/SemaObjC/property-2.m
- copied unchanged from r54084, cfe/trunk/test/SemaObjC/objc-property-2.m
cfe/trunk/test/SemaObjC/property-3.m
- copied unchanged from r54084, cfe/trunk/test/SemaObjC/objc-property-3.m
cfe/trunk/test/SemaObjC/property-4.m
- copied unchanged from r54084, cfe/trunk/test/SemaObjC/objc-property-4.m
cfe/trunk/test/SemaObjC/property-5.m
- copied unchanged from r54084, cfe/trunk/test/SemaObjC/objc-property-5.m
cfe/trunk/test/SemaObjC/property-6.m
- copied unchanged from r54084, cfe/trunk/test/SemaObjC/objc-property-6.m
cfe/trunk/test/SemaObjC/property-7.m
- copied unchanged from r54084, cfe/trunk/test/SemaObjC/objc-property-7.m
cfe/trunk/test/SemaObjC/property-8.m
- copied unchanged from r54084, cfe/trunk/test/SemaObjC/objc-property-8.m
cfe/trunk/test/SemaObjC/property-9-impl-method.m
- copied unchanged from r54084, cfe/trunk/test/SemaObjC/objc-property-9-impl-method.m
cfe/trunk/test/SemaObjC/props-on-prots.m
- copied unchanged from r54084, cfe/trunk/test/SemaObjC/objc-props-on-prots.m
cfe/trunk/test/SemaObjC/protocol-archane.m
- copied unchanged from r54084, cfe/trunk/test/SemaObjC/objc-protocol-1.m
cfe/trunk/test/SemaObjC/string.m
- copied unchanged from r54084, cfe/trunk/test/SemaObjC/objc-string.m
cfe/trunk/test/SemaObjC/synchronized.m
- copied unchanged from r54084, cfe/trunk/test/SemaObjC/objc-synchronized.m
cfe/trunk/test/SemaObjC/try-catch.m
- copied unchanged from r54084, cfe/trunk/test/SemaObjC/objc-try-catch.m
cfe/trunk/test/SemaObjC/typedef-class.m
- copied unchanged from r54084, cfe/trunk/test/SemaObjC/objc-typedef-class.m
cfe/trunk/test/SemaObjC/unused.m
- copied unchanged from r54084, cfe/trunk/test/SemaObjC/objc-unused.m
Removed:
cfe/trunk/test/SemaObjC/objc-at-defs.m
cfe/trunk/test/SemaObjC/objc-bad-receiver-1.m
cfe/trunk/test/SemaObjC/objc-comptypes-1.m
cfe/trunk/test/SemaObjC/objc-comptypes-2.m
cfe/trunk/test/SemaObjC/objc-comptypes-3.m
cfe/trunk/test/SemaObjC/objc-comptypes-4.m
cfe/trunk/test/SemaObjC/objc-comptypes-5.m
cfe/trunk/test/SemaObjC/objc-comptypes-6.m
cfe/trunk/test/SemaObjC/objc-comptypes-7.m
cfe/trunk/test/SemaObjC/objc-comptypes-8.m
cfe/trunk/test/SemaObjC/objc-comptypes-9.m
cfe/trunk/test/SemaObjC/objc-interface-1.m
cfe/trunk/test/SemaObjC/objc-interface-layout.m
cfe/trunk/test/SemaObjC/objc-ivar-lookup.m
cfe/trunk/test/SemaObjC/objc-legacy-implementation-1.m
cfe/trunk/test/SemaObjC/objc-method-lookup.m
cfe/trunk/test/SemaObjC/objc-property-1.m
cfe/trunk/test/SemaObjC/objc-property-2.m
cfe/trunk/test/SemaObjC/objc-property-3.m
cfe/trunk/test/SemaObjC/objc-property-4.m
cfe/trunk/test/SemaObjC/objc-property-5.m
cfe/trunk/test/SemaObjC/objc-property-6.m
cfe/trunk/test/SemaObjC/objc-property-7.m
cfe/trunk/test/SemaObjC/objc-property-8.m
cfe/trunk/test/SemaObjC/objc-property-9-impl-method.m
cfe/trunk/test/SemaObjC/objc-props-on-prots.m
cfe/trunk/test/SemaObjC/objc-protocol-1.m
cfe/trunk/test/SemaObjC/objc-string.m
cfe/trunk/test/SemaObjC/objc-synchronized.m
cfe/trunk/test/SemaObjC/objc-try-catch.m
cfe/trunk/test/SemaObjC/objc-typedef-class.m
cfe/trunk/test/SemaObjC/objc-types-compatible.m
cfe/trunk/test/SemaObjC/objc-unused.m
Removed: cfe/trunk/test/SemaObjC/objc-at-defs.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-at-defs.m?rev=54084&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-at-defs.m (original)
+++ cfe/trunk/test/SemaObjC/objc-at-defs.m (removed)
@@ -1,29 +0,0 @@
-// RUN: clang %s -fsyntax-only
-
- at interface Test {
- double a;
-}
- at end
- at implementation Test
- at end
- at interface TestObject : Test {
- at public
- float bar;
- int foo;
-}
- at end
- at implementation TestObject
- at end
-struct wibble {
- @defs(TestObject)
-};
-
-
-int main(void)
-{
- TestObject * a = (id)malloc(100);
- a->foo = 12;
- printf("12: %d\n", ((struct wibble*)a)->foo);
- printf("%d: %d\n", ((char*)&(((struct wibble*)a)->foo)) - (char*)a, ((char*)&(a->foo)) - (char*)a);
- return 0;
-}
Removed: cfe/trunk/test/SemaObjC/objc-bad-receiver-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-bad-receiver-1.m?rev=54084&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-bad-receiver-1.m (original)
+++ cfe/trunk/test/SemaObjC/objc-bad-receiver-1.m (removed)
@@ -1,9 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
- at interface I
-- (id) retain;
- at end
-
-void __raiseExc1() {
- [objc_lookUpClass("NSString") retain]; // expected-error {{ "bad receiver type 'int'" }}
-}
Removed: cfe/trunk/test/SemaObjC/objc-comptypes-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-comptypes-1.m?rev=54084&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-comptypes-1.m (original)
+++ cfe/trunk/test/SemaObjC/objc-comptypes-1.m (removed)
@@ -1,89 +0,0 @@
-// RUN: clang -fsyntax-only -verify -pedantic %s
-
-#define nil (void *)0;
-#define Nil (void *)0;
-
-extern void foo();
-
- at protocol MyProtocol
-- (void) foo;
- at end
-
- at interface MyClass
- at end
-
- at interface MyOtherClass <MyProtocol>
-- (void) foo;
- at end
-
-int main()
-{
- id obj = nil;
- id<MyProtocol> obj_p = nil;
- MyClass *obj_c = nil;
- MyOtherClass *obj_cp = nil;
- Class obj_C = Nil;
-
- /* Assigning to an 'id' variable should never
- generate a warning. */
- obj = obj_p; /* Ok */
- obj = obj_c; /* Ok */
- obj = obj_cp; /* Ok */
- obj = obj_C; /* Ok */
-
- /* Assigning to a 'MyClass *' variable should always generate a
- warning, unless done from an 'id'. */
- obj_c = obj; /* Ok */
- obj_c = obj_cp; // // expected-warning {{incompatible pointer types assigning 'MyOtherClass *', expected 'MyClass *'}}
- obj_c = obj_C; // expected-warning {{incompatible pointer types assigning 'Class', expected 'MyClass *'}}
-
- /* Assigning to an 'id<MyProtocol>' variable should generate a
- warning if done from a 'MyClass *' (which doesn't implement
- MyProtocol), but not from an 'id' or from a 'MyOtherClass *'
- (which implements MyProtocol). */
- obj_p = obj; /* Ok */
- obj_p = obj_c; // expected-error {{incompatible type assigning 'MyClass *', expected 'id<MyProtocol>'}}
- obj_p = obj_cp; /* Ok */
- obj_p = obj_C; // expected-error {{incompatible type assigning 'Class', expected 'id<MyProtocol>'}}
-
- /* Assigning to a 'MyOtherClass *' variable should always generate
- a warning, unless done from an 'id' or an 'id<MyProtocol>' (since
- MyOtherClass implements MyProtocol). */
- obj_cp = obj; /* Ok */
- obj_cp = obj_c; // expected-warning {{incompatible pointer types assigning 'MyClass *', expected 'MyOtherClass *'}}
- obj_cp = obj_p; /* Ok */
- obj_cp = obj_C; // expected-warning {{incompatible pointer types assigning 'Class', expected 'MyOtherClass *'}}
-
- /* Any comparison involving an 'id' must be without warnings. */
- if (obj == obj_p) foo() ; /* Ok */ /*Bogus warning here in 2.95.4*/
- if (obj_p == obj) foo() ; /* Ok */
- if (obj == obj_c) foo() ; /* Ok */
- if (obj_c == obj) foo() ; /* Ok */
- if (obj == obj_cp) foo() ; /* Ok */
- if (obj_cp == obj) foo() ; /* Ok */
- if (obj == obj_C) foo() ; /* Ok */
- if (obj_C == obj) foo() ; /* Ok */
-
- /* Any comparison between 'MyClass *' and anything which is not an 'id'
- must generate a warning. */
- if (obj_p == obj_c) foo() ; // expected-error {{invalid operands to binary expression ('id<MyProtocol>' and 'MyClass *')}}
-
- if (obj_c == obj_cp) foo() ; // expected-warning {{comparison of distinct pointer types ('MyClass *' and 'MyOtherClass *')}}
- if (obj_cp == obj_c) foo() ; // expected-warning {{comparison of distinct pointer types ('MyOtherClass *' and 'MyClass *')}}
-
- if (obj_c == obj_C) foo() ; // expected-warning {{comparison of distinct pointer types ('MyClass *' and 'Class')}}
- if (obj_C == obj_c) foo() ; // expected-warning {{comparison of distinct pointer types ('Class' and 'MyClass *')}}
-
- /* Any comparison between 'MyOtherClass *' (which implements
- MyProtocol) and an 'id' implementing MyProtocol are Ok. */
- if (obj_cp == obj_p) foo() ; /* Ok */
- if (obj_p == obj_cp) foo() ; /* Ok */
-
-
- if (obj_p == obj_C) foo() ; // expected-error {{invalid operands to binary expression ('id<MyProtocol>' and 'Class')}}
- if (obj_C == obj_p) foo() ; // expected-error {{invalid operands to binary expression ('Class' and 'id<MyProtocol>')}}
- if (obj_cp == obj_C) foo() ; // expected-warning {{comparison of distinct pointer types ('MyOtherClass *' and 'Class')}}
- if (obj_C == obj_cp) foo() ; // expected-warning {{comparison of distinct pointer types ('Class' and 'MyOtherClass *')}}
-
- return 0;
-}
Removed: cfe/trunk/test/SemaObjC/objc-comptypes-2.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-comptypes-2.m?rev=54084&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-comptypes-2.m (original)
+++ cfe/trunk/test/SemaObjC/objc-comptypes-2.m (removed)
@@ -1,37 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
-#define nil (void *)0;
-#define Nil (void *)0;
-
- at protocol MyProtocol
-- (void) foo;
- at end
-
- at interface MyClass
- at end
-
-int main()
-{
- id obj = nil;
- id<MyProtocol> obj_p = nil;
- MyClass *obj_c = nil;
- Class obj_C = Nil;
-
- /* All these casts should generate no warnings. */
-
- obj = (id)obj_p;
- obj = (id)obj_c;
- obj = (id)obj_C;
- obj_c = (MyClass *)obj;
- obj_c = (MyClass *)obj_p;
- obj_c = (MyClass *)obj_C;
- obj_p = (id<MyProtocol>)obj;
- obj_p = (id<MyProtocol>)obj_c;
- obj_p = (id<MyProtocol>)obj_C;
- obj_C = (Class)obj;
- obj_C = (Class)obj_p;
- obj_C = (Class)obj_c;
-
-
- return 0;
-}
Removed: cfe/trunk/test/SemaObjC/objc-comptypes-3.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-comptypes-3.m?rev=54084&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-comptypes-3.m (original)
+++ cfe/trunk/test/SemaObjC/objc-comptypes-3.m (removed)
@@ -1,64 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
-#define nil (void *)0;
-
-extern void foo();
-
- at protocol MyProtocolA
-- (void) methodA;
- at end
-
- at protocol MyProtocolB
-- (void) methodB;
- at end
-
- at protocol MyProtocolAB <MyProtocolA, MyProtocolB>
- at end
-
- at protocol MyProtocolAC <MyProtocolA>
-- (void) methodC;
- at end
-
-int main()
-{
- id<MyProtocolA> obj_a = nil;
- id<MyProtocolB> obj_b = nil;
- id<MyProtocolAB> obj_ab = nil;
- id<MyProtocolAC> obj_ac = nil;
-
- obj_a = obj_b; // expected-error {{incompatible type assigning 'id<MyProtocolB>', expected 'id<MyProtocolA>'}}
- obj_a = obj_ab; /* Ok */
- obj_a = obj_ac; /* Ok */
-
- obj_b = obj_a; // expected-error {{incompatible type assigning 'id<MyProtocolA>', expected 'id<MyProtocolB>'}}
- obj_b = obj_ab; /* Ok */
- obj_b = obj_ac; // expected-error {{incompatible type assigning 'id<MyProtocolAC>', expected 'id<MyProtocolB>'}}
-
- obj_ab = obj_a; // expected-error {{incompatible type assigning 'id<MyProtocolA>', expected 'id<MyProtocolAB>'}}
- obj_ab = obj_b; // expected-error {{incompatible type assigning 'id<MyProtocolB>', expected 'id<MyProtocolAB>'}}
- obj_ab = obj_ac; // expected-error {{incompatible type assigning 'id<MyProtocolAC>', expected 'id<MyProtocolAB>'}}
-
- obj_ac = obj_a; // expected-error {{incompatible type assigning 'id<MyProtocolA>', expected 'id<MyProtocolAC>'}}
- obj_ac = obj_b; // expected-error {{incompatible type assigning 'id<MyProtocolB>', expected 'id<MyProtocolAC>'}}
- obj_ac = obj_ab; // expected-error {{incompatible type assigning 'id<MyProtocolAB>', expected 'id<MyProtocolAC>'}}
-
- if (obj_a == obj_b) foo (); // expected-error {{invalid operands to binary expression ('id<MyProtocolA>' and 'id<MyProtocolB>')}}
- if (obj_b == obj_a) foo (); // expected-error {{invalid operands to binary expression ('id<MyProtocolB>' and 'id<MyProtocolA>')}}
-
- if (obj_a == obj_ab) foo (); /* Ok */
- if (obj_ab == obj_a) foo (); /* Ok */
-
- if (obj_a == obj_ac) foo (); /* Ok */
- if (obj_ac == obj_a) foo (); /* Ok */
-
- if (obj_b == obj_ab) foo (); /* Ok */
- if (obj_ab == obj_b) foo (); /* Ok */
-
- if (obj_b == obj_ac) foo (); // expected-error {{invalid operands to binary expression ('id<MyProtocolB>' and 'id<MyProtocolAC>')}}
- if (obj_ac == obj_b) foo (); // expected-error {{invalid operands to binary expression ('id<MyProtocolAC>' and 'id<MyProtocolB>')}}
-
- if (obj_ab == obj_ac) foo (); // expected-error {{invalid operands to binary expression ('id<MyProtocolAB>' and 'id<MyProtocolAC>')}}
- if (obj_ac == obj_ab) foo (); // expected-error {{invalid operands to binary expression ('id<MyProtocolAC>' and 'id<MyProtocolAB>')}}
-
- return 0;
-}
Removed: cfe/trunk/test/SemaObjC/objc-comptypes-4.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-comptypes-4.m?rev=54084&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-comptypes-4.m (original)
+++ cfe/trunk/test/SemaObjC/objc-comptypes-4.m (removed)
@@ -1,25 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
-extern void foo();
-
- at protocol MyProtocol @end
-
- at interface MyClass @end
-
-int main()
-{
- MyClass <MyProtocol> *obj_p;
- MyClass *obj_cp;
-
- obj_cp = obj_p;
- obj_p = obj_cp;
-
- if (obj_cp == obj_p)
- foo();
-
- if (obj_p == obj_cp)
- foo();
-
-}
-
-
Removed: cfe/trunk/test/SemaObjC/objc-comptypes-5.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-comptypes-5.m?rev=54084&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-comptypes-5.m (original)
+++ cfe/trunk/test/SemaObjC/objc-comptypes-5.m (removed)
@@ -1,44 +0,0 @@
-// RUN: clang -fsyntax-only -pedantic -verify %s
-
-#define nil (void *)0;
-
-extern void foo();
-
- at protocol MyProtocol
-- (void) method;
- at end
-
- at interface MyClass
- at end
-
- at interface MyClass (Addition) <MyProtocol>
-- (void) method;
- at end
-
- at interface MyOtherClass : MyClass
- at end
-
-int main()
-{
- id <MyProtocol> obj_id_p = nil;
- MyClass *obj_c_cat_p = nil;
- MyOtherClass *obj_c_super_p = nil;
- MyOtherClass<MyProtocol> *obj_c_super_p_q = nil;
- MyClass<MyProtocol> *obj_c_cat_p_q = nil;
-
- obj_c_cat_p = obj_id_p; // expected-error {{incompatible type assigning 'id<MyProtocol>', expected 'MyClass *'}}
- obj_c_super_p = obj_id_p; // expected-error {{incompatible type assigning 'id<MyProtocol>', expected 'MyOtherClass *'}}
- obj_id_p = obj_c_cat_p; /* Ok */
- obj_id_p = obj_c_super_p; /* Ok */
-
- if (obj_c_cat_p == obj_id_p) foo(); /* Ok */
- if (obj_c_super_p == obj_id_p) foo() ; /* Ok */
- if (obj_id_p == obj_c_cat_p) foo(); /* Ok */
- if (obj_id_p == obj_c_super_p) foo(); /* Ok */
-
- obj_c_cat_p = obj_c_super_p; // ok.
- obj_c_cat_p = obj_c_super_p_q; // ok.
- obj_c_super_p = obj_c_cat_p_q; // expected-warning {{incompatible pointer types}}
- obj_c_cat_p_q = obj_c_super_p;
- return 0;
-}
Removed: cfe/trunk/test/SemaObjC/objc-comptypes-6.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-comptypes-6.m?rev=54084&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-comptypes-6.m (original)
+++ cfe/trunk/test/SemaObjC/objc-comptypes-6.m (removed)
@@ -1,16 +0,0 @@
-// RUN: clang -fsyntax-only -verify -pedantic %s
-
- at interface Derived
- at end
-
- at interface Object @end
-
-extern Object* foo(void);
-
-static Derived *test(void)
-{
- Derived *m = foo(); // expected-warning {{incompatible pointer types initializing 'Object *', expected 'Derived *'}}
-
- return m;
-}
-
Removed: cfe/trunk/test/SemaObjC/objc-comptypes-7.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-comptypes-7.m?rev=54084&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-comptypes-7.m (original)
+++ cfe/trunk/test/SemaObjC/objc-comptypes-7.m (removed)
@@ -1,70 +0,0 @@
-// RUN: clang -fsyntax-only -verify -pedantic %s
-
-#define nil (void *)0;
-#define Nil (void *)0;
-
-extern void foo();
-
- at protocol MyProtocol
-- (void) method;
- at end
-
- at interface MyClass
- at end
-
-int main()
-{
- id obj = nil;
- id <MyProtocol> obj_p = nil;
- MyClass *obj_c = nil;
- Class obj_C = Nil;
-
- int i = 0;
- int *j = nil;
-
- /* These should all generate warnings. */
-
- obj = i; // expected-warning {{incompatible integer to pointer conversion assigning 'int', expected 'id'}}
- obj = j; // expected-warning {{incompatible pointer types assigning 'int *', expected 'id'}}
-
- obj_p = i; // expected-warning {{incompatible integer to pointer conversion assigning 'int', expected 'id<MyProtocol>'}}
- obj_p = j; // expected-error {{incompatible type assigning 'int *', expected 'id<MyProtocol>'}}
-
- obj_c = i; // expected-warning {{incompatible integer to pointer conversion assigning 'int', expected 'MyClass *'}}
- obj_c = j; // expected-warning {{incompatible pointer types assigning 'int *', expected 'MyClass *'}}
-
- obj_C = i; // expected-warning {{incompatible integer to pointer conversion assigning 'int', expected 'Class'}}
- obj_C = j; // expected-warning {{incompatible pointer types assigning 'int *', expected 'Class'}}
-
- i = obj; // expected-warning {{incompatible pointer to integer conversion assigning 'id', expected 'int'}}
- i = obj_p; // expected-warning {{incompatible pointer to integer conversion assigning 'id<MyProtocol>', expected 'int'}}
- i = obj_c; // expected-warning {{incompatible pointer to integer conversion assigning 'MyClass *', expected 'int'}}
- i = obj_C; // expected-warning {{incompatible pointer to integer conversion assigning 'Class', expected 'int'}}
-
- j = obj; // expected-warning {{incompatible pointer types assigning 'id', expected 'int *'}}
- j = obj_p; // expected-error {{incompatible type assigning 'id<MyProtocol>', expected 'int *'}}
- j = obj_c; // expected-warning {{incompatible pointer types assigning 'MyClass *', expected 'int *'}}
- j = obj_C; // expected-warning {{incompatible pointer types assigning 'Class', expected 'int *'}}
-
- if (obj == i) foo() ; // expected-warning {{comparison between pointer and integer ('id' and 'int')}}
- if (i == obj) foo() ; // expected-warning {{comparison between pointer and integer ('int' and 'id')}}
- if (obj == j) foo() ; // expected-warning {{comparison of distinct pointer types ('id' and 'int *')}}
- if (j == obj) foo() ; // expected-warning {{comparison of distinct pointer types ('int *' and 'id')}}
-
- if (obj_c == i) foo() ; // expected-warning {{comparison between pointer and integer ('MyClass *' and 'int')}}
- if (i == obj_c) foo() ; // expected-warning {{comparison between pointer and integer ('int' and 'MyClass *')}}
- if (obj_c == j) foo() ; // expected-warning {{comparison of distinct pointer types ('MyClass *' and 'int *')}}
- if (j == obj_c) foo() ; // expected-warning {{comparison of distinct pointer types ('int *' and 'MyClass *')}}
-
- if (obj_p == i) foo() ; // expected-warning {{comparison between pointer and integer ('id<MyProtocol>' and 'int')}}
- if (i == obj_p) foo() ; // expected-warning {{comparison between pointer and integer ('int' and 'id<MyProtocol>')}}
- if (obj_p == j) foo() ; // expected-error {{invalid operands to binary expression ('id<MyProtocol>' and 'int *')}}
- if (j == obj_p) foo() ; // expected-error {{invalid operands to binary expression ('int *' and 'id<MyProtocol>')}}
-
- if (obj_C == i) foo() ; // expected-warning {{comparison between pointer and integer ('Class' and 'int')}}
- if (i == obj_C) foo() ; // expected-warning {{comparison between pointer and integer ('int' and 'Class')}}
- if (obj_C == j) foo() ; // expected-warning {{comparison of distinct pointer types ('Class' and 'int *')}}
- if (j == obj_C) foo() ; // expected-warning {{comparison of distinct pointer types ('int *' and 'Class')}}
-
- return 0;
-}
Removed: cfe/trunk/test/SemaObjC/objc-comptypes-8.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-comptypes-8.m?rev=54084&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-comptypes-8.m (original)
+++ cfe/trunk/test/SemaObjC/objc-comptypes-8.m (removed)
@@ -1,12 +0,0 @@
-// RUN: clang -fsyntax-only %s
-
- at protocol MyProtocol
- at end
-
-id<MyProtocol> obj_p = 0;
-
-int main()
-{
- obj_p = 0;
-}
-
Removed: cfe/trunk/test/SemaObjC/objc-comptypes-9.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-comptypes-9.m?rev=54084&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-comptypes-9.m (original)
+++ cfe/trunk/test/SemaObjC/objc-comptypes-9.m (removed)
@@ -1,86 +0,0 @@
-// RUN: clang -fsyntax-only %s
-// FIXME: This test case tests the patch applied in: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20080602/006017.html
-// Eventually that logic should be treated as an extension.
-
-typedef signed char BOOL;
-typedef int NSInteger;
-typedef unsigned int NSUInteger;
-typedef struct _NSZone NSZone;
- at class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
-
- at protocol NSObject
-- (BOOL)isEqual:(id)object;
- at end
-
- at protocol NSCopying
-- (id)copyWithZone:(NSZone *)zone;
- at end
-
- at protocol NSMutableCopying
-- (id)mutableCopyWithZone:(NSZone *)zone;
- at end
-
- at protocol NSCoding
-- (void)encodeWithCoder:(NSCoder *)aCoder;
- at end
-
- at interface NSObject <NSObject> {}
- at end
-
- at class NSArray;
-
-typedef struct {} NSFastEnumerationState;
-
- at protocol NSFastEnumeration
-- (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(id *)stackbuf count:(NSUInteger)len;
- at end
-
- at class NSString;
-
- at interface NSArray : NSObject <NSCopying, NSMutableCopying, NSCoding, NSFastEnumeration>
-- (NSUInteger)count;
-- (id)objectAtIndex:(NSUInteger)index;
- at end
-
-typedef unsigned short unichar;
-
- at interface NSString : NSObject <NSCopying, NSMutableCopying, NSCoding>
-- (NSUInteger)length;
- at end
-
- at interface NSSimpleCString : NSString
-{}
-
- at end
-
- at interface NSConstantString : NSSimpleCString @end
-
-extern void *_NSConstantStringClassReference;
-
- at interface NSResponder : NSObject <NSCoding> {}
- at end
-
- at class NSDate, NSDictionary, NSError, NSException, NSNotification;
-
- at interface NSWindowController : NSResponder <NSCoding> {}
- at end
-
- at class PBXBuildLog, PBXBuildLogItem, PBXBuildLogContainerItem, XCWorkQueueCommand, XCBuildLogContainerItemMutationState;
-
- at protocol PBXBuildLogContainerItems <NSObject>
-- (PBXBuildLog *)buildLog;
- at end
-
- at interface PBXBuildLogItem : NSObject {}
-- (id <PBXBuildLogContainerItems>)superitem;
- at end
- at interface PBXBuildResultsModule
- at end
-
- at implementation PBXBuildResultsModule
-- (void) revealItems
-{
- PBXBuildLogItem *objItem;
- PBXBuildLogItem *superitem = [objItem superitem];
-}
- at end
Removed: cfe/trunk/test/SemaObjC/objc-interface-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-interface-1.m?rev=54084&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-interface-1.m (original)
+++ cfe/trunk/test/SemaObjC/objc-interface-1.m (removed)
@@ -1,17 +0,0 @@
-// RUN: clang %s -fsyntax-only -verify
-// rdar://5957506
-
- at interface NSWhatever :
-NSObject // expected-error {{cannot find interface declaration for 'NSObject'}}
-<NSCopying> // expected-error {{cannot find protocol definition for 'NSCopying'}}
- at end
-
-
-// rdar://6095245
- at interface A
-{
- int x
-} // expected-error {{expected ';' at end of declaration list}}
- at end
-
-
Removed: cfe/trunk/test/SemaObjC/objc-interface-layout.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-interface-layout.m?rev=54084&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-interface-layout.m (original)
+++ cfe/trunk/test/SemaObjC/objc-interface-layout.m (removed)
@@ -1,27 +0,0 @@
-// RUN: clang %s -fsyntax-only -verify
-typedef struct objc_object {} *id;
-typedef signed char BOOL;
-typedef unsigned int NSUInteger;
-typedef struct _NSZone NSZone;
-
- at protocol NSObject
-- (BOOL) isEqual:(id) object;
- at end
-
- at protocol NSCopying
-- (id) copyWithZone:(NSZone *) zone;
- at end
-
- at interface NSObject < NSObject > {}
- at end
-
-extern id NSAllocateObject (Class aClass, NSUInteger extraBytes, NSZone * zone);
-
- at interface MyClassBase : NSObject < NSCopying > {}
- at end
-
- at interface MyClassDirectNode : MyClassBase < NSCopying >
-{
- @public NSUInteger attributeRuns[((1024 - 16 - sizeof (MyClassBase)) / (sizeof (NSUInteger) + sizeof (void *)))];
-}
- at end
Removed: cfe/trunk/test/SemaObjC/objc-ivar-lookup.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-ivar-lookup.m?rev=54084&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-ivar-lookup.m (original)
+++ cfe/trunk/test/SemaObjC/objc-ivar-lookup.m (removed)
@@ -1,18 +0,0 @@
-// RUN: clang %s -fsyntax-only -verify
-
- at interface Test {
- int x;
-}
-
--(void) setX: (int) d;
- at end
-
-extern struct foo x;
-
- at implementation Test
-
--(void) setX: (int) n {
- x = n;
-}
-
- at end
Removed: cfe/trunk/test/SemaObjC/objc-legacy-implementation-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-legacy-implementation-1.m?rev=54084&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-legacy-implementation-1.m (original)
+++ cfe/trunk/test/SemaObjC/objc-legacy-implementation-1.m (removed)
@@ -1,11 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
- at implementation INTF // expected-warning {{cannot find interface declaration for 'INTF'}}
- at end
-
-INTF* pi;
-
-INTF* FUNC()
-{
- return pi;
-}
Removed: cfe/trunk/test/SemaObjC/objc-method-lookup.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-method-lookup.m?rev=54084&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-method-lookup.m (original)
+++ cfe/trunk/test/SemaObjC/objc-method-lookup.m (removed)
@@ -1,40 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-typedef signed char BOOL;
-
- at protocol NSObject
-- (BOOL) isEqual:(id) object;
- at end
-
- at interface NSObject < NSObject > {} @end
-
- at class NSString, NSPort;
-
- at interface NSPortNameServer:NSObject
-+ (NSPortNameServer *) systemDefaultPortNameServer;
- at end
-
- at interface NSMachBootstrapServer:NSPortNameServer + (id) sharedInstance; @end
-
-enum {
- NSWindowsNTOperatingSystem = 1, NSWindows95OperatingSystem, NSSolarisOperatingSystem, NSHPUXOperatingSystem, NSMACHOperatingSystem, NSSunOSOperatingSystem, NSOSF1OperatingSystem
-};
-
- at interface NSRunLoop:NSObject {} @end
-
- at interface NSRunLoop(NSRunLoopConveniences)
-- (void) run;
- at end
-
-extern NSString *const NSWillBecomeMultiThreadedNotification;
-
- at interface SenTestTool:NSObject {}
- at end
-
- at implementation SenTestTool
-+ (void) initialize {}
-+(SenTestTool *) sharedInstance {}
--(int) run {}
-+(int) run {
- return[[self sharedInstance] run];
-}
- at end
Removed: cfe/trunk/test/SemaObjC/objc-property-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-property-1.m?rev=54084&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-property-1.m (original)
+++ cfe/trunk/test/SemaObjC/objc-property-1.m (removed)
@@ -1,39 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
- at interface I
-{
- int IVAR;
- int name;
-}
- at property int d1;
- at property id prop_id;
- at property int name;
- at end
-
- at interface I(CAT)
- at property int d1;
- at end
-
- at implementation I
- at synthesize d1; // expected-error {{synthesized property 'd1' must either be named the same as}}
- at dynamic bad; // expected-error {{property implementation must have its declaration in interface 'I'}}
- at synthesize prop_id; // expected-error {{synthesized property 'prop_id' must either be named the same}}
- at synthesize prop_id = IVAR; // expected-error {{type of property 'prop_id' does not match type of ivar 'IVAR'}}
- at synthesize name; // OK! property with same name as an accessible ivar of same name
- at end
-
- at implementation I(CAT)
- at synthesize d1; // expected-error {{@synthesize not allowed in a category's implementation}}
- at dynamic bad; // expected-error {{property implementation must have its declaration in the category 'CAT'}}
- at end
-
- at implementation E // expected-warning {{cannot find interface declaration for 'E'}}
- at dynamic d; // expected-error {{property implementation must have its declaration in interface 'E'}}
- at end
-
- at implementation Q(MYCAT) // expected-error {{cannot find interface declaration for 'Q'}}
- at dynamic d; // expected-error {{property implementation in a category with no category declaration}}
- at end
-
-
-
Removed: cfe/trunk/test/SemaObjC/objc-property-2.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-property-2.m?rev=54084&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-property-2.m (original)
+++ cfe/trunk/test/SemaObjC/objc-property-2.m (removed)
@@ -1,63 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
- at interface Tester
- at property char PropertyAtomic_char;
- at property short PropertyAtomic_short;
- at property int PropertyAtomic_int;
- at property long PropertyAtomic_long;
- at property long long PropertyAtomic_longlong;
- at property float PropertyAtomic_float;
- at property double PropertyAtomic_double;
- at property(assign) id PropertyAtomic_id;
- at property(retain) id PropertyAtomicRetained_id;
- at property(copy) id PropertyAtomicRetainedCopied_id;
- at property(retain) id PropertyAtomicRetainedGCOnly_id;
- at property(copy) id PropertyAtomicRetainedCopiedGCOnly_id;
- at end
-
- at implementation Tester
- at dynamic PropertyAtomic_char;
- at dynamic PropertyAtomic_short;
- at dynamic PropertyAtomic_int;
- at dynamic PropertyAtomic_long;
- at dynamic PropertyAtomic_longlong;
- at dynamic PropertyAtomic_float;
- at dynamic PropertyAtomic_double;
- at dynamic PropertyAtomic_id;
- at dynamic PropertyAtomicRetained_id;
- at dynamic PropertyAtomicRetainedCopied_id;
- at dynamic PropertyAtomicRetainedGCOnly_id;
- at dynamic PropertyAtomicRetainedCopiedGCOnly_id;
- at end
-
- at interface SubClass : Tester
-{
- char PropertyAtomic_char;
- short PropertyAtomic_short;
- int PropertyAtomic_int;
- long PropertyAtomic_long;
- long long PropertyAtomic_longlong;
- float PropertyAtomic_float;
- double PropertyAtomic_double;
- id PropertyAtomic_id;
- id PropertyAtomicRetained_id;
- id PropertyAtomicRetainedCopied_id;
- id PropertyAtomicRetainedGCOnly_id;
- id PropertyAtomicRetainedCopiedGCOnly_id;
-}
- at end
-
- at implementation SubClass
- at synthesize PropertyAtomic_char;
- at synthesize PropertyAtomic_short;
- at synthesize PropertyAtomic_int;
- at synthesize PropertyAtomic_long;
- at synthesize PropertyAtomic_longlong;
- at synthesize PropertyAtomic_float;
- at synthesize PropertyAtomic_double;
- at synthesize PropertyAtomic_id;
- at synthesize PropertyAtomicRetained_id;
- at synthesize PropertyAtomicRetainedCopied_id;
- at synthesize PropertyAtomicRetainedGCOnly_id;
- at synthesize PropertyAtomicRetainedCopiedGCOnly_id;
- at end
Removed: cfe/trunk/test/SemaObjC/objc-property-3.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-property-3.m?rev=54084&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-property-3.m (original)
+++ cfe/trunk/test/SemaObjC/objc-property-3.m (removed)
@@ -1,14 +0,0 @@
-// RUN: clang -verify %s
-
- at interface I
-{
- id d1;
-}
- at property (readwrite, copy) id d1;
- at property (readwrite, copy) id d2;
- at end
-
- at interface NOW : I
- at property (readonly, retain) id d1; // expected-warning {{attribute 'readonly' of property 'd1' restricts attribute 'readwrite' of property inherited from 'I'}} expected-warning {{property 'd1' 'copy' attribute does not match the property inherited from'I'}}
- at property (readwrite, copy) I* d2; // expected-warning {{property type 'I *' does not match property type inherited from 'I'}}
- at end
Removed: cfe/trunk/test/SemaObjC/objc-property-4.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-property-4.m?rev=54084&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-property-4.m (original)
+++ cfe/trunk/test/SemaObjC/objc-property-4.m (removed)
@@ -1,30 +0,0 @@
-// RUN: clang -verify %s
-
- at interface Object
- at end
-
- at protocol ProtocolObject
- at property int class;
- at property (copy) id MayCauseError;
- at end
-
- at protocol ProtocolDerivedGCObject <ProtocolObject>
- at property int Dclass;
- at end
-
- at interface GCObject : Object <ProtocolDerivedGCObject> {
- int ifield;
- int iOwnClass;
- int iDclass;
-}
- at property int OwnClass;
- at end
-
- at interface ReleaseObject : GCObject <ProtocolObject> {
- int newO;
- int oldO;
-}
- at property (retain) id MayCauseError; // expected-warning {{property 'MayCauseError' 'copy' attribute does not match the property inherited from'GCObject'}} \
- expected-warning {{property 'MayCauseError' 'copy' attribute does not match the property inherited from'ProtocolObject'}}
- at end
-
Removed: cfe/trunk/test/SemaObjC/objc-property-5.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-property-5.m?rev=54084&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-property-5.m (original)
+++ cfe/trunk/test/SemaObjC/objc-property-5.m (removed)
@@ -1,31 +0,0 @@
-// RUN: clang -verify %s
-
- at protocol P1 @end
- at protocol P2 @end
- at protocol P3 @end
-
- at interface NSData @end
-
- at interface MutableNSData : NSData @end
-
- at interface Base : NSData <P1>
- at property(readonly) id ref;
- at property(readonly) Base *p_base;
- at property(readonly) NSData *nsdata;
- at property(readonly) NSData * m_nsdata;
- at end
-
- at interface Data : Base <P1, P2>
- at property(readonly) NSData *ref; // expected-warning {{property type 'NSData *' does not match property type inherited from 'Base'}}
- at property(readonly) Data *p_base; // expected-warning {{property type 'Data *' does not match property type inherited from 'Base'}}
- at property(readonly) MutableNSData * m_nsdata; // expected-warning {{property type 'MutableNSData *' does not match property type inherited from 'Base'}}
- at end
-
- at interface MutedData: Data
- at property(readonly) id p_base; // expected-warning {{property type 'id' does not match property type inherited from 'Data'}}
- at end
-
- at interface ConstData : Data <P1, P2, P3>
- at property(readonly) ConstData *p_base; // expected-warning {{property type 'ConstData *' does not match property type inherited from 'Data'}}
- at end
-
Removed: cfe/trunk/test/SemaObjC/objc-property-6.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-property-6.m?rev=54084&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-property-6.m (original)
+++ cfe/trunk/test/SemaObjC/objc-property-6.m (removed)
@@ -1,69 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-# 1 "<command line>"
-# 1 "/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h" 1 3
-typedef signed char BOOL;
-typedef unsigned int NSUInteger;
-typedef struct _NSZone NSZone;
-
- at class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
-
- at protocol NSObject
-- (BOOL)isEqual:(id)object;
-+ class;
- at end
-
- at protocol NSCopying
-- (id)copyWithZone:(NSZone *)zone;
- at end
-
- at protocol NSMutableCopying
-- (id)mutableCopyWithZone:(NSZone *)zone;
- at end
-
- at protocol NSCoding
-- (void)encodeWithCoder:(NSCoder *)aCoder;
- at end
-
- at interface NSObject <NSObject> {}
- at end
-
-typedef struct {} NSFastEnumerationState;
-
- at protocol NSFastEnumeration
-- (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(id *)stackbuf count:(NSUInteger)len;
- at end
-
- at interface NSArray : NSObject <NSCopying, NSMutableCopying, NSCoding, NSFastEnumeration>
-- (NSUInteger)count;
- at end
-
- at interface NSMutableArray : NSArray
-- (void)addObject:(id)anObject;
-+ (id)arrayWithCapacity:(int)numItems;
- at end
-
- at interface NSBundle : NSObject {}
-+ (NSBundle *)bundleForClass:(Class)aClass;
-- (NSString *)bundlePath;
-- (void)setBundlePath:(NSString *)x;
- at end
-
- at interface NSException : NSObject <NSCopying, NSCoding> {}
- at end
-
- at class NSArray, NSDictionary, NSError, NSString, NSURL;
-
- at interface DTPlugInManager : NSObject
- at end
-
- at implementation DTPlugInManager
-+ (DTPlugInManager *)defaultPlugInManager {
- @try {
- NSMutableArray *plugInPaths = [NSMutableArray arrayWithCapacity:100];
- NSBundle *frameworkBundle = [NSBundle bundleForClass:[DTPlugInManager class]];
- frameworkBundle.bundlePath = 0;
- [plugInPaths addObject:frameworkBundle.bundlePath];
- }
- @catch (NSException *exception) {}
-}
- at end
Removed: cfe/trunk/test/SemaObjC/objc-property-7.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-property-7.m?rev=54084&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-property-7.m (original)
+++ cfe/trunk/test/SemaObjC/objc-property-7.m (removed)
@@ -1,34 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-typedef signed char BOOL;
-typedef struct _NSZone NSZone;
-
- at protocol NSObject
-- (BOOL)isEqual:(id)object;
- at end
-
- at protocol NSCopying
-- (id)copyWithZone:(NSZone *)zone;
- at end
-
- at interface NSObject <NSObject> {}
- at end
-
- at class NSString, NSData, NSMutableData, NSMutableDictionary, NSMutableArray;
-
- at interface SCMObject : NSObject <NSCopying> {}
- @property(assign) SCMObject *__attribute__((objc_gc(weak))) parent;
- at end
-
- at interface SCMNode : SCMObject
-{
- NSString *_name;
-}
- at property(copy) NSString *name;
- at end
-
- at implementation SCMNode
- @synthesize name = _name;
- - (void) setParent:(SCMNode*) inParent {
- super.parent = inParent;
- }
- at end
Removed: cfe/trunk/test/SemaObjC/objc-property-8.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-property-8.m?rev=54084&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-property-8.m (original)
+++ cfe/trunk/test/SemaObjC/objc-property-8.m (removed)
@@ -1,74 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-typedef signed char BOOL;
-typedef unsigned int NSUInteger;
-typedef struct _NSZone NSZone;
-
- at class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
-
- at protocol NSObject - (BOOL)isEqual:(id)object; @end
- at protocol NSCopying - (id)copyWithZone:(NSZone *)zone; @end
- at protocol NSMutableCopying - (id)mutableCopyWithZone:(NSZone *)zone; @end
- at protocol NSCoding - (void)encodeWithCoder:(NSCoder *)aCoder; @end
-
- at interface NSObject <NSObject> {} @end
-
-typedef float CGFloat;
-
-typedef enum { NSMinXEdge = 0, NSMinYEdge = 1, NSMaxXEdge = 2, NSMaxYEdge = 3 } NSFastEnumerationState;
-
- at protocol NSFastEnumeration
-- (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(id *)stackbuf count:(NSUInteger)len;
- at end
-
- at class NSString;
-
- at interface NSDictionary : NSObject <NSCopying, NSMutableCopying, NSCoding, NSFastEnumeration>
-- (NSUInteger)count;
- at end
-
-extern NSString * const NSBundleDidLoadNotification;
-
- at interface NSObject(NSKeyValueObserving)
-- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context;
-- (void)removeObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath;
- at end
-
-enum { NSCaseInsensitivePredicateOption = 0x01, NSDiacriticInsensitivePredicateOption = 0x02 };
-
- at interface NSResponder : NSObject <NSCoding> {}
- at end
-
-extern NSString * const NSFullScreenModeAllScreens;
- at interface NSWindowController : NSResponder <NSCoding> {}
- at end
-
-extern NSString *NSAlignmentBinding ;
-
- at interface _XCOQQuery : NSObject {}
- at end
-
-extern NSString *PBXWindowDidChangeFirstResponderNotification;
-
- at interface PBXModule : NSWindowController {}
- at end
-
- at class _XCOQHelpTextBackgroundView;
- at interface PBXOpenQuicklyModule : PBXModule
-{
- at private
- _XCOQQuery *_query;
-}
- at end
-
- at interface PBXOpenQuicklyModule ()
- at property(readwrite, retain) _XCOQQuery *query;
- at end
-
- at implementation PBXOpenQuicklyModule
- at synthesize query = _query;
-- (void) _clearQuery
-{
- [self.query removeObserver: self forKeyPath: @"matches"];
-}
- at end
-
Removed: cfe/trunk/test/SemaObjC/objc-property-9-impl-method.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-property-9-impl-method.m?rev=54084&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-property-9-impl-method.m (original)
+++ cfe/trunk/test/SemaObjC/objc-property-9-impl-method.m (removed)
@@ -1,63 +0,0 @@
-// RUN: clang %s -fsyntax-only -verify
-// rdar://5967199
-
-typedef signed char BOOL;
- at class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
-
- at protocol NSObject
-- (BOOL) isEqual:(id) object;
- at end
-
- at protocol NSCoding
-- (void) encodeWithCoder:(NSCoder *) aCoder;
- at end
-
- at interface NSObject < NSObject > {}
- at end
-
-typedef float CGFloat;
-typedef struct _NSPoint {} NSSize;
-typedef struct _NSRect {} NSRect;
-typedef enum { NSMinXEdge = 0, NSMinYEdge = 1, NSMaxXEdge = 2, NSMaxYEdge = 3} NSRectEdge;
-extern void NSDivideRect(NSRect inRect, NSRect * slice, NSRect * rem, CGFloat amount, NSRectEdge edge);
-
- at interface NSResponder:NSObject < NSCoding > {}
- at end
-
- at protocol NSAnimatablePropertyContainer
-- (id) animator;
- at end
-
-extern NSString *NSAnimationTriggerOrderIn;
-
- at interface NSView:NSResponder < NSAnimatablePropertyContainer > {}
--(NSRect) bounds;
- at end
-
-enum {
- NSBackgroundStyleLight = 0, NSBackgroundStyleDark, NSBackgroundStyleRaised, NSBackgroundStyleLowered
-};
-
- at interface NSTabView:NSView {}
- at end
-
-@ class OrganizerTabHeader;
-
- at interface OrganizerTabView:NSTabView {}
- at property(assign)
-NSSize minimumSize;
- at end
-
- at interface OrganizerTabView()
- at property(readonly) OrganizerTabHeader *tabHeaderView;
- at property(readonly) NSRect headerRect;
- at end
-
- at implementation OrganizerTabView
- at dynamic tabHeaderView, headerRect, minimumSize;
--(CGFloat) tabAreaThickness {}
--(NSRectEdge) rectEdgeForTabs {
- NSRect dummy, result = {};
- NSDivideRect(self.bounds, &result, &dummy, self.tabAreaThickness, self.rectEdgeForTabs);
-}
-
Removed: cfe/trunk/test/SemaObjC/objc-props-on-prots.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-props-on-prots.m?rev=54084&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-props-on-prots.m (original)
+++ cfe/trunk/test/SemaObjC/objc-props-on-prots.m (removed)
@@ -1,65 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-typedef signed char BOOL;
- at class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
-
- at protocol NSObject
-- (BOOL) isEqual:(id) object;
- at end
-
- at protocol NSCoding
-- (void) encodeWithCoder:(NSCoder *) aCoder;
- at end
-
- at interface NSObject < NSObject > {} @end
-
-typedef float CGFloat;
-
- at interface NSResponder:NSObject < NSCoding > {} @end
-
- at class XCElementView;
-
-typedef struct _XCElementInset {} XCElementInset;
-
- at protocol XCElementP < NSObject >
--(BOOL) vertical;
- at end
-
- at protocol XCElementDisplayDelegateP;
- at protocol XCElementTabMarkerP;
-
-typedef NSObject < XCElementTabMarkerP > XCElementTabMarker;
-
- at protocol XCElementTabberP < XCElementP >
--(void) setMarker:(XCElementTabMarker *) marker;
- at end
-
-typedef NSObject < XCElementTabberP > XCElementTabber;
-
- at protocol XCElementTabMarkerP < NSObject >
- at property(nonatomic)
-BOOL variableSized;
- at end
-
- at protocol XCElementJustifierP < XCElementP >
--(void) setHJustification:(CGFloat) hJust;
- at end
-
-typedef NSObject < XCElementJustifierP > XCElementJustifier;
- at interface XCElementImp:NSObject < XCElementP > {}
- at end
-
- at class XCElementImp;
-
- at interface XCElementTabberImp:XCElementImp < XCElementTabberP > {
- XCElementTabMarker *_marker;
-}
- at end
-
- at implementation XCElementTabberImp
-- (void) setMarker:(XCElementTabMarker *) marker {
- if (_marker && _marker.variableSized) {
- }
-}
-- vertical { return self; }
-- (BOOL)isEqual:x { return 1; }
- at end
Removed: cfe/trunk/test/SemaObjC/objc-protocol-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-protocol-1.m?rev=54084&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-protocol-1.m (original)
+++ cfe/trunk/test/SemaObjC/objc-protocol-1.m (removed)
@@ -1,14 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-// rdar://5986251
-
- at protocol SomeProtocol
-- (void) bar;
- at end
-
-void foo(id x) {
- bar((short<SomeProtocol>)x); // expected-error {{expected ')'}} expected-error {{to match this '('}}
- bar((<SomeProtocol>)x); // expected-warning {{protocol qualifiers without 'id' is archaic}}
-
- [(<SomeProtocol>)x bar]; // expected-warning {{protocol qualifiers without 'id' is archaic}}
-}
-
Removed: cfe/trunk/test/SemaObjC/objc-string.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-string.m?rev=54084&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-string.m (original)
+++ cfe/trunk/test/SemaObjC/objc-string.m (removed)
@@ -1,15 +0,0 @@
-// RUN: clang %s -verify -fsyntax-only &&
-// RUN: clang %s -verify -fsyntax-only -DDECLAREIT
-
-// a declaration of NSConstantString is not required.
-#ifdef DECLAREIT
- at interface NSConstantString;
- at end
-#endif
-
-
-
-id s = @"123"; // simple
-id t = @"123" @"456"; // concat
-id u = @"123" @ blah; // expected-error: {{unexpected token}}
-
Removed: cfe/trunk/test/SemaObjC/objc-synchronized.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-synchronized.m?rev=54084&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-synchronized.m (original)
+++ cfe/trunk/test/SemaObjC/objc-synchronized.m (removed)
@@ -1,75 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-typedef signed char BOOL;
-typedef unsigned int NSUInteger;
-typedef struct _NSZone NSZone;
- at class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
-
- at protocol NSObject
-- (BOOL)isEqual:(id)object;
- at end
-
- at protocol NSCopying
-- (id)copyWithZone:(NSZone *)zone;
- at end
-
- at protocol NSMutableCopying
-- (id)mutableCopyWithZone:(NSZone *)zone;
- at end
-
- at protocol NSCoding
-- (void)encodeWithCoder:(NSCoder *)aCoder;
- at end
-
- at interface NSObject <NSObject> {} @end
-
-typedef float CGFloat;
-typedef struct { int a; } NSFastEnumerationState;
-
- at protocol NSFastEnumeration
-- (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(id *)stackbuf count:(NSUInteger)len;
- at end
-
-typedef unsigned short unichar;
-
- at interface NSString : NSObject <NSCopying, NSMutableCopying, NSCoding>
-- (NSUInteger)length;
- at end
-
- at interface NSSimpleCString : NSString {} @end
-
- at interface NSConstantString : NSSimpleCString @end
-
-extern void *_NSConstantStringClassReference;
-
- at interface NSDictionary : NSObject <NSCopying, NSMutableCopying, NSCoding, NSFastEnumeration>
-- (NSUInteger)count;
- at end
-
- at interface NSMutableDictionary : NSDictionary
-- (void)removeObjectForKey:(id)aKey;
- at end
-
- at class NSArray, NSSet, NSHashTable;
-
- at protocol PBXTrackableTask <NSObject>
-- (float) taskPercentComplete;
-- taskIdentifier;
- at end
-
- at interface PBXTrackableTaskManager : NSObject {
- NSMutableDictionary *_trackableTasks;
-}
- at end
-
-NSString *XCExecutableDebugTaskIdentifier = @"XCExecutableDebugTaskIdentifier";
-
- at implementation PBXTrackableTaskManager
-- (id) init {}
-- (void) unregisterTask:(id <PBXTrackableTask>) task {
- @synchronized (self) {
- id taskID = [task taskIdentifier];
- id task = [_trackableTasks objectForKey:taskID]; // expected-warning{{method '-objectForKey:' not found (return type defaults to 'id')}}
- }
-}
- at end
-
Removed: cfe/trunk/test/SemaObjC/objc-try-catch.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-try-catch.m?rev=54084&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-try-catch.m (original)
+++ cfe/trunk/test/SemaObjC/objc-try-catch.m (removed)
@@ -1,37 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-typedef signed char BOOL;
-typedef struct _NSZone NSZone;
-
- at class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
-
- at protocol NSObject
-- (BOOL)isEqual:(id)object;
- at end
-
- at protocol NSCopying
-- (id)copyWithZone:(NSZone *)zone;
- at end
-
- at protocol NSCoding
-- (void)encodeWithCoder:(NSCoder *)aCoder;
- at end
-
- at interface NSObject <NSObject> {}
- at end
-
- at class NSData, NSArray, NSDictionary, NSCharacterSet, NSData, NSURL, NSError, NSLocale;
-
- at interface NSException : NSObject <NSCopying, NSCoding> {}
- at end
-
- at class ASTNode, XCRefactoringParser, Transform, TransformInstance, XCRefactoringSelectionInfo;
-
- at interface XCRefactoringTransformation : NSObject {}
- at end
-
- at implementation XCRefactoringTransformation
-- (NSDictionary *)setUpInfoForTransformKey:(NSString *)transformKey outError:(NSError **)outError; {
- @try {}
- // the exception name is optional (weird)
- @catch (NSException *) {}
-}
Removed: cfe/trunk/test/SemaObjC/objc-typedef-class.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-typedef-class.m?rev=54084&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-typedef-class.m (original)
+++ cfe/trunk/test/SemaObjC/objc-typedef-class.m (removed)
@@ -1,78 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-typedef signed char BOOL;
-typedef unsigned int NSUInteger;
-typedef struct _NSZone NSZone;
-
- at class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
-
- at protocol NSObject - (BOOL) isEqual:(id) object; @end
- at protocol NSCopying - (id) copyWithZone:(NSZone *) zone; @end
- at protocol NSCoding - (void) encodeWithCoder:(NSCoder *) aCoder; @end
-
- at interface NSObject < NSObject > {}
-+(id) alloc;
- at end
-
-typedef float CGFloat;
-
- at interface NSTask:NSObject
-- (id) init;
- at end
-
-typedef NSUInteger NSControlSize;
-typedef struct __CFlags {} _CFlags;
-
- at interface NSCell:NSObject < NSCopying, NSCoding > {}
- at end
-
- at interface NSActionCell:NSCell {} @end
-
- at class NSAttributedString, NSFont, NSImage, NSSound;
-
-typedef struct _XCElementInset {} XCElementInset;
-
- at protocol XCElementP < NSObject >
--(BOOL) vertical;
- at end
-
- at protocol XCElementDisplayDelegateP;
- at protocol XCElementDisplayDelegateP < NSObject >
--(void) configureForControlSize:(NSControlSize)size font:(NSFont *)font addDefaultSpace:(XCElementInset) additionalSpace;
- at end
-
- at protocol XCElementSpacerP < XCElementP >
- at end
-
-typedef NSObject < XCElementSpacerP > XCElementSpacer;
-
- at protocol XCElementTogglerP < XCElementP > -(void) setDisplayed:(BOOL) displayed;
- at end
-
-typedef NSObject < XCElementTogglerP > XCElementToggler;
-
- at interface XCElementRootFace:NSObject {} @end
-
- at interface XCElementFace:XCElementRootFace {} @end
-
- at class XCElementToggler;
-
- at interface XCRASlice:XCElementFace {} @end
-
- at class XCElementSpacings;
-
- at interface XCElementDisplay:NSObject < XCElementDisplayDelegateP > {} @end
- at interface XCElementDisplayRect:XCElementDisplay {} @end
-
-typedef XCElementDisplayRect XCElementGraphicsRect;
-
- at interface XCElementDisplayFillerImage:XCElementDisplay {} @end
-
- at implementation XCRASlice
-- (void) addSliceWithLabel:(NSString *)label statusKey:(NSString *)statusKey disclosed:(BOOL)disclosed
-{
- static XCElementGraphicsRect *_sGraphicsDelegate = ((void *) 0);
- if (!_sGraphicsDelegate) {
- _sGraphicsDelegate =[[XCElementGraphicsRect alloc] init];
- }
-}
- at end
Removed: cfe/trunk/test/SemaObjC/objc-types-compatible.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-types-compatible.m?rev=54084&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-types-compatible.m (original)
+++ cfe/trunk/test/SemaObjC/objc-types-compatible.m (removed)
@@ -1,40 +0,0 @@
-// RUN: clang -fsyntax-only -verify -pedantic %s
-typedef signed char BOOL;
-typedef int NSInteger;
-
- at class NSString;
-
- at protocol PBXCompletionItem
-- (NSString *) name;
-- (NSInteger)priority;
- at end
-
-extern NSInteger codeAssistantCaseCompareItems(id a, id b, void *context);
-
-NSInteger codeAssistantCaseCompareItems(id<PBXCompletionItem> a, id<PBXCompletionItem> b, void *context)
-{
-}
-
-#if 0
-FIXME: clang needs to compare each method prototype with its definition (see below).
-
-GCC produces the following correct warnning:
-[snaroff:llvm/tools/clang] snarofflocal% cc -c test/Sema/objc-types-compatible.m
-test/Sema/objc-types-compatible.m: In function â-[TedWantsToVerifyObjCDoesTheRightThing compareThis:withThat:]â:
-test/Sema/objc-types-compatible.m:26: warning: conflicting types for â-(id)compareThis:(id <PBXCompletionItem>)a withThat:(id <PBXCompletionItem>)bâ
-test/Sema/objc-types-compatible.m:20: warning: previous declaration of â-(id)compareThis:(int)a withThat:(id)bâ
-#endif
-
- at interface TedWantsToVerifyObjCDoesTheRightThing
-
-- compareThis:(int)a withThat:(id)b;
-
- at end
-
- at implementation TedWantsToVerifyObjCDoesTheRightThing
-
-- compareThis:(id<PBXCompletionItem>)a withThat:(id<PBXCompletionItem>)b {
- return self;
-}
-
- at end
Removed: cfe/trunk/test/SemaObjC/objc-unused.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-unused.m?rev=54084&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-unused.m (original)
+++ cfe/trunk/test/SemaObjC/objc-unused.m (removed)
@@ -1,18 +0,0 @@
-// RUN: clang %s -verify -fsyntax-only
-#include <stdio.h>
-
- at interface Greeter
-+ (void) hello;
- at end
-
- at implementation Greeter
-+ (void) hello {
- fprintf(stdout, "Hello, World!\n");
-}
- at end
-
-int main (void) {
- [Greeter hello];
- return 0;
-}
-
More information about the cfe-commits
mailing list