[cfe-commits] r68930 - in /cfe/trunk/test/SemaObjC: property-1.m property.m

Chris Lattner sabre at nondot.org
Sun Apr 12 16:49:41 PDT 2009


Author: lattner
Date: Sun Apr 12 18:49:38 2009
New Revision: 68930

URL: http://llvm.org/viewvc/llvm-project?rev=68930&view=rev
Log:
rename test

Added:
    cfe/trunk/test/SemaObjC/property.m
      - copied unchanged from r68905, cfe/trunk/test/SemaObjC/property-1.m
Removed:
    cfe/trunk/test/SemaObjC/property-1.m

Removed: cfe/trunk/test/SemaObjC/property-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/property-1.m?rev=68929&view=auto

==============================================================================
--- cfe/trunk/test/SemaObjC/property-1.m (original)
+++ cfe/trunk/test/SemaObjC/property-1.m (removed)
@@ -1,47 +0,0 @@
-// RUN: clang-cc -triple i386-apple-darwin9 -fsyntax-only -verify %s
-
- at interface I 
-{
-	int IVAR;
-	int name;
-}
- at property int d1;
- at property id  prop_id; // expected-warning {{no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed}}, expected-warning {{default property attribute 'assign' not appropriate for non-gc object}}
- 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
-
- at interface Foo
- at property double bar;
- at end
-
-int main() {
-   id foo;
-   double bar = [foo bar];
-   return 0;
-}
-





More information about the cfe-commits mailing list