[cfe-commits] r54084 - in /cfe/trunk/test: ./ Sema/ SemaObjC/

Chris Lattner sabre at nondot.org
Fri Jul 25 17:57:25 PDT 2008


Author: lattner
Date: Fri Jul 25 19:57:24 2008
New Revision: 54084

URL: http://llvm.org/viewvc/llvm-project?rev=54084&view=rev
Log:
move all objc sema tests into a new SemaObjC directory.  Next step is to
remove the objc- prefix from the tests that use it.

Added:
    cfe/trunk/test/SemaObjC/
    cfe/trunk/test/SemaObjC/DoubleMethod.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/DoubleMethod.m
    cfe/trunk/test/SemaObjC/alias-test-1.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/alias-test-1.m
    cfe/trunk/test/SemaObjC/alias-test-2.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/alias-test-2.m
    cfe/trunk/test/SemaObjC/argument-checking.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/argument-checking.m
    cfe/trunk/test/SemaObjC/category-1.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/category-1.m
    cfe/trunk/test/SemaObjC/check-dup-decl-methods-1.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/check-dup-decl-methods-1.m
    cfe/trunk/test/SemaObjC/check-dup-objc-decls-1.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/check-dup-objc-decls-1.m
    cfe/trunk/test/SemaObjC/class-conforming-protocol-1.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/class-conforming-protocol-1.m
    cfe/trunk/test/SemaObjC/class-def-test-1.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/class-def-test-1.m
    cfe/trunk/test/SemaObjC/class-impl-1.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/class-impl-1.m
    cfe/trunk/test/SemaObjC/class-proto-1.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/class-proto-1.m
    cfe/trunk/test/SemaObjC/cocoa.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/cocoa.m
    cfe/trunk/test/SemaObjC/compatible-protocol-qualified-types.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/compatible-protocol-qualified-types.m
    cfe/trunk/test/SemaObjC/conditional-expr.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/conditional-expr.m
    cfe/trunk/test/SemaObjC/conflicting-ivar-test-1.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/conflicting-ivar-test-1.m
    cfe/trunk/test/SemaObjC/const-id.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/const-id.m
    cfe/trunk/test/SemaObjC/enhanced-proto-2.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/enhanced-proto-2.m
    cfe/trunk/test/SemaObjC/format-strings-objc.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/format-strings-objc.m
    cfe/trunk/test/SemaObjC/forward-class-1.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/forward-class-1.m
    cfe/trunk/test/SemaObjC/gcc-cast-ext.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/gcc-cast-ext.m
    cfe/trunk/test/SemaObjC/id_builtin.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/id_builtin.m
    cfe/trunk/test/SemaObjC/incompatible-protocol-qualified-types.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/incompatible-protocol-qualified-types.m
    cfe/trunk/test/SemaObjC/invalid-objc-decls-1.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/invalid-objc-decls-1.m
    cfe/trunk/test/SemaObjC/ivar-sem-check-1.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/ivar-sem-check-1.m
    cfe/trunk/test/SemaObjC/message.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/message.m
    cfe/trunk/test/SemaObjC/method-def-1.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/method-def-1.m
    cfe/trunk/test/SemaObjC/method-def-2.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/method-def-2.m
    cfe/trunk/test/SemaObjC/method-encoding-2.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/method-encoding-2.m
    cfe/trunk/test/SemaObjC/method-lookup.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/method-lookup.m
    cfe/trunk/test/SemaObjC/method-not-defined.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/method-not-defined.m
    cfe/trunk/test/SemaObjC/method-undef-category-warn-1.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/method-undef-category-warn-1.m
    cfe/trunk/test/SemaObjC/method-undefined-warn-1.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/method-undefined-warn-1.m
    cfe/trunk/test/SemaObjC/missing-method-context.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/missing-method-context.m
    cfe/trunk/test/SemaObjC/objc-at-defs.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/objc-at-defs.m
    cfe/trunk/test/SemaObjC/objc-bad-receiver-1.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/objc-bad-receiver-1.m
    cfe/trunk/test/SemaObjC/objc-comptypes-1.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/objc-comptypes-1.m
    cfe/trunk/test/SemaObjC/objc-comptypes-2.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/objc-comptypes-2.m
    cfe/trunk/test/SemaObjC/objc-comptypes-3.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/objc-comptypes-3.m
    cfe/trunk/test/SemaObjC/objc-comptypes-4.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/objc-comptypes-4.m
    cfe/trunk/test/SemaObjC/objc-comptypes-5.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/objc-comptypes-5.m
    cfe/trunk/test/SemaObjC/objc-comptypes-6.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/objc-comptypes-6.m
    cfe/trunk/test/SemaObjC/objc-comptypes-7.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/objc-comptypes-7.m
    cfe/trunk/test/SemaObjC/objc-comptypes-8.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/objc-comptypes-8.m
    cfe/trunk/test/SemaObjC/objc-comptypes-9.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/objc-comptypes-9.m
    cfe/trunk/test/SemaObjC/objc-interface-1.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/objc-interface-1.m
    cfe/trunk/test/SemaObjC/objc-interface-layout.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/objc-interface-layout.m
    cfe/trunk/test/SemaObjC/objc-ivar-lookup.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/objc-ivar-lookup.m
    cfe/trunk/test/SemaObjC/objc-legacy-implementation-1.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/objc-legacy-implementation-1.m
    cfe/trunk/test/SemaObjC/objc-method-lookup.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/objc-method-lookup.m
    cfe/trunk/test/SemaObjC/objc-property-1.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/objc-property-1.m
    cfe/trunk/test/SemaObjC/objc-property-2.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/objc-property-2.m
    cfe/trunk/test/SemaObjC/objc-property-3.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/objc-property-3.m
    cfe/trunk/test/SemaObjC/objc-property-4.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/objc-property-4.m
    cfe/trunk/test/SemaObjC/objc-property-5.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/objc-property-5.m
    cfe/trunk/test/SemaObjC/objc-property-6.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/objc-property-6.m
    cfe/trunk/test/SemaObjC/objc-property-7.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/objc-property-7.m
    cfe/trunk/test/SemaObjC/objc-property-8.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/objc-property-8.m
    cfe/trunk/test/SemaObjC/objc-property-9-impl-method.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/objc-property-9-impl-method.m
    cfe/trunk/test/SemaObjC/objc-props-on-prots.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/objc-props-on-prots.m
    cfe/trunk/test/SemaObjC/objc-protocol-1.m
      - copied unchanged from r54083, cfe/trunk/test/Sema/objc-protocol-1.m
    cfe/trunk/test/SemaObjC/objc-string.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/objc-string.m
    cfe/trunk/test/SemaObjC/objc-synchronized.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/objc-synchronized.m
    cfe/trunk/test/SemaObjC/objc-try-catch.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/objc-try-catch.m
    cfe/trunk/test/SemaObjC/objc-typedef-class.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/objc-typedef-class.m
    cfe/trunk/test/SemaObjC/objc-types-compatible.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/objc-types-compatible.m
    cfe/trunk/test/SemaObjC/objc-unused.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/objc-unused.m
    cfe/trunk/test/SemaObjC/protocol-expr-1.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/protocol-expr-1.m
    cfe/trunk/test/SemaObjC/protocol-expr-neg-1.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/protocol-expr-neg-1.m
    cfe/trunk/test/SemaObjC/protocol-id-test-1.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/protocol-id-test-1.m
    cfe/trunk/test/SemaObjC/protocol-id-test-2.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/protocol-id-test-2.m
    cfe/trunk/test/SemaObjC/protocol-id-test-3.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/protocol-id-test-3.m
    cfe/trunk/test/SemaObjC/protocol-test-1.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/protocol-test-1.m
    cfe/trunk/test/SemaObjC/protocol-test-2.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/protocol-test-2.m
    cfe/trunk/test/SemaObjC/selector-1.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/selector-1.m
    cfe/trunk/test/SemaObjC/selector-overload.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/selector-overload.m
    cfe/trunk/test/SemaObjC/static-ivar-ref-1.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/static-ivar-ref-1.m
    cfe/trunk/test/SemaObjC/undef-protocol-methods-1.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/undef-protocol-methods-1.m
    cfe/trunk/test/SemaObjC/undef-superclass-1.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/undef-superclass-1.m
    cfe/trunk/test/SemaObjC/undefined-protocol-type-1.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/undefined-protocol-type-1.m
    cfe/trunk/test/SemaObjC/va-method-1.m
      - copied unchanged from r54066, cfe/trunk/test/Sema/va-method-1.m
Removed:
    cfe/trunk/test/Sema/DoubleMethod.m
    cfe/trunk/test/Sema/alias-test-1.m
    cfe/trunk/test/Sema/alias-test-2.m
    cfe/trunk/test/Sema/argument-checking.m
    cfe/trunk/test/Sema/category-1.m
    cfe/trunk/test/Sema/check-dup-decl-methods-1.m
    cfe/trunk/test/Sema/check-dup-objc-decls-1.m
    cfe/trunk/test/Sema/class-conforming-protocol-1.m
    cfe/trunk/test/Sema/class-def-test-1.m
    cfe/trunk/test/Sema/class-impl-1.m
    cfe/trunk/test/Sema/class-proto-1.m
    cfe/trunk/test/Sema/cocoa.m
    cfe/trunk/test/Sema/compatible-protocol-qualified-types.m
    cfe/trunk/test/Sema/conditional-expr.m
    cfe/trunk/test/Sema/conflicting-ivar-test-1.m
    cfe/trunk/test/Sema/const-id.m
    cfe/trunk/test/Sema/enhanced-proto-2.m
    cfe/trunk/test/Sema/format-strings-objc.m
    cfe/trunk/test/Sema/forward-class-1.m
    cfe/trunk/test/Sema/gcc-cast-ext.m
    cfe/trunk/test/Sema/id_builtin.m
    cfe/trunk/test/Sema/incompatible-protocol-qualified-types.m
    cfe/trunk/test/Sema/invalid-objc-decls-1.m
    cfe/trunk/test/Sema/ivar-sem-check-1.m
    cfe/trunk/test/Sema/message.m
    cfe/trunk/test/Sema/method-def-1.m
    cfe/trunk/test/Sema/method-def-2.m
    cfe/trunk/test/Sema/method-encoding-2.m
    cfe/trunk/test/Sema/method-lookup.m
    cfe/trunk/test/Sema/method-not-defined.m
    cfe/trunk/test/Sema/method-undef-category-warn-1.m
    cfe/trunk/test/Sema/method-undefined-warn-1.m
    cfe/trunk/test/Sema/missing-method-context.m
    cfe/trunk/test/Sema/objc-at-defs.m
    cfe/trunk/test/Sema/objc-bad-receiver-1.m
    cfe/trunk/test/Sema/objc-comptypes-1.m
    cfe/trunk/test/Sema/objc-comptypes-2.m
    cfe/trunk/test/Sema/objc-comptypes-3.m
    cfe/trunk/test/Sema/objc-comptypes-4.m
    cfe/trunk/test/Sema/objc-comptypes-5.m
    cfe/trunk/test/Sema/objc-comptypes-6.m
    cfe/trunk/test/Sema/objc-comptypes-7.m
    cfe/trunk/test/Sema/objc-comptypes-8.m
    cfe/trunk/test/Sema/objc-comptypes-9.m
    cfe/trunk/test/Sema/objc-interface-1.m
    cfe/trunk/test/Sema/objc-interface-layout.m
    cfe/trunk/test/Sema/objc-ivar-lookup.m
    cfe/trunk/test/Sema/objc-legacy-implementation-1.m
    cfe/trunk/test/Sema/objc-method-lookup.m
    cfe/trunk/test/Sema/objc-property-1.m
    cfe/trunk/test/Sema/objc-property-2.m
    cfe/trunk/test/Sema/objc-property-3.m
    cfe/trunk/test/Sema/objc-property-4.m
    cfe/trunk/test/Sema/objc-property-5.m
    cfe/trunk/test/Sema/objc-property-6.m
    cfe/trunk/test/Sema/objc-property-7.m
    cfe/trunk/test/Sema/objc-property-8.m
    cfe/trunk/test/Sema/objc-property-9-impl-method.m
    cfe/trunk/test/Sema/objc-props-on-prots.m
    cfe/trunk/test/Sema/objc-protocol-1.m
    cfe/trunk/test/Sema/objc-string.m
    cfe/trunk/test/Sema/objc-synchronized.m
    cfe/trunk/test/Sema/objc-try-catch.m
    cfe/trunk/test/Sema/objc-typedef-class.m
    cfe/trunk/test/Sema/objc-types-compatible.m
    cfe/trunk/test/Sema/objc-unused.m
    cfe/trunk/test/Sema/protocol-expr-1.m
    cfe/trunk/test/Sema/protocol-expr-neg-1.m
    cfe/trunk/test/Sema/protocol-id-test-1.m
    cfe/trunk/test/Sema/protocol-id-test-2.m
    cfe/trunk/test/Sema/protocol-id-test-3.m
    cfe/trunk/test/Sema/protocol-test-1.m
    cfe/trunk/test/Sema/protocol-test-2.m
    cfe/trunk/test/Sema/selector-1.m
    cfe/trunk/test/Sema/selector-overload.m
    cfe/trunk/test/Sema/static-ivar-ref-1.m
    cfe/trunk/test/Sema/undef-protocol-methods-1.m
    cfe/trunk/test/Sema/undef-superclass-1.m
    cfe/trunk/test/Sema/undefined-protocol-type-1.m
    cfe/trunk/test/Sema/va-method-1.m
Modified:
    cfe/trunk/test/Makefile

Modified: cfe/trunk/test/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Makefile?rev=54084&r1=54083&r2=54084&view=diff

==============================================================================
--- cfe/trunk/test/Makefile (original)
+++ cfe/trunk/test/Makefile Fri Jul 25 19:57:24 2008
@@ -1,7 +1,7 @@
 LEVEL = ../../..
 include $(LEVEL)/Makefile.common
 
-TESTDIRS = CodeGen Lexer Preprocessor Parser Sema Analysis Serialization Rewriter
+TESTDIRS = CodeGen Lexer Preprocessor Parser Sema SemaObjC Analysis Serialization Rewriter
 
 # Only run rewriter tests on darwin.
 ifeq ($(OS),Darwin)

Removed: cfe/trunk/test/Sema/DoubleMethod.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/DoubleMethod.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/DoubleMethod.m (original)
+++ cfe/trunk/test/Sema/DoubleMethod.m (removed)
@@ -1,19 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
- at interface Subclass
-{
-    int ivar;
-}
-
-- (void) method;
-- (void) method;
- at end
-
- at implementation Subclass
-- (void) method {;} // expected-error {{previous declaration is here}}
-- (void) method {;} // expected-error {{duplicate declaration of method 'method'}}
- at end
-
-int main (void) {
-    return 0;
-}

Removed: cfe/trunk/test/Sema/alias-test-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/alias-test-1.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/alias-test-1.m (original)
+++ cfe/trunk/test/Sema/alias-test-1.m (removed)
@@ -1,31 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
- at compatibility_alias alias4 foo; // expected-warning {{cannot find interface declaration for 'foo'}}
-
- at class class2; // expected-error {{previous declaration is here}}
- at class class3;
-
-typedef int I;  // expected-warning {{previous declaration is here}}
-
- at compatibility_alias alias1 I;  // expected-warning {{cannot find interface declaration for 'I'}}
-
- at compatibility_alias alias class2;     
- at compatibility_alias alias class3;   // expected-error {{conflicting types for alias 'alias'}}
-
-
-typedef int alias2;	// expected-error {{previous declaration is here}}
- at compatibility_alias alias2 class3;  // expected-error {{conflicting types for alias 'alias2'}}
-
-alias *p;
-class2 *p2;
-
-int foo ()
-{
-
-	if (p == p2) {
-	  int alias = 1;
-	}
-
-	alias *p3;
-	return p3 == p2;
-}

Removed: cfe/trunk/test/Sema/alias-test-2.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/alias-test-2.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/alias-test-2.m (original)
+++ cfe/trunk/test/Sema/alias-test-2.m (removed)
@@ -1,16 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
- at interface Super @end
-
- at interface MyWpModule @end
-
- at compatibility_alias  MyAlias MyWpModule;
-
- at compatibility_alias  AliasForSuper Super;
-
- at interface MyAlias : AliasForSuper // expected-error {{duplicate interface declaration for class 'MyWpModule'}}
- at end
-
- at implementation MyAlias : AliasForSuper
- at end
-

Removed: cfe/trunk/test/Sema/argument-checking.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/argument-checking.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/argument-checking.m (original)
+++ cfe/trunk/test/Sema/argument-checking.m (removed)
@@ -1,25 +0,0 @@
-// RUN: clang -fsyntax-only -verify -pedantic %s
-
-struct S { int a; };
-
-extern int charStarFunc(char *);
-extern int charFunc(char);
-
- at interface Test
-+alloc;
--(int)charStarMeth:(char *)s;
--structMeth:(struct S)s;
--structMeth:(struct S)s :(struct S)s2;
- at end
-
-void test() {
-  id obj = [Test alloc];
-  struct S sInst;
-
-  charStarFunc(1); // expected-warning {{incompatible integer to pointer conversion passing 'int', expected 'char *'}}
-  charFunc("abc"); // expected-warning {{incompatible pointer to integer conversion passing 'char [4]', expected 'char'}}
-
-  [obj charStarMeth:1]; // expected-warning {{incompatible integer to pointer conversion sending 'int'}}
-  [obj structMeth:1]; // expected-error {{incompatible type sending 'int'}}
-  [obj structMeth:sInst :1]; // expected-error {{incompatible type sending 'int'}}
-}

Removed: cfe/trunk/test/Sema/category-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/category-1.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/category-1.m (original)
+++ cfe/trunk/test/Sema/category-1.m (removed)
@@ -1,56 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
- at interface MyClass1 @end
-
- at protocol p1,p2,p3;
-
- at interface MyClass1 (Category1)  <p1> // expected-warning {{cannot find protocol definition for 'p1', referenced by 'Category1'}}
- at end
-
- at interface MyClass1 (Category1)  // expected-warning {{duplicate interface declaration for category 'MyClass1(Category1)'}}
- at end
-
- at interface MyClass1 (Category3) 
- at end
-
- at interface MyClass1 (Category4) @end
- at interface MyClass1 (Category5) @end
- at interface MyClass1 (Category6) @end
- at interface MyClass1 (Category7) @end
- at interface MyClass1 (Category8) @end
-
-
- at interface MyClass1 (Category4) @end // expected-warning {{duplicate interface declaration for category 'MyClass1(Category4)'}}
- at interface MyClass1 (Category7) @end // expected-warning {{duplicate interface declaration for category 'MyClass1(Category7)'}}
- at interface MyClass1 (Category8) @end // expected-warning {{duplicate interface declaration for category 'MyClass1(Category8)'}}
-
-
- at protocol p3 @end
-
- at interface MyClass1 (Category) <p2, p3> @end  // expected-warning {{cannot find protocol definition for 'p2', referenced by 'Category'}}
-
- at interface MyClass  (Category) @end // expected-error {{cannot find interface declaration for 'MyClass'}}
-
- at class MyClass2;
-
- at interface MyClass2  (Category) @end  // expected-error {{cannot find interface declaration for 'MyClass2'}}
-
- at interface XCRemoteComputerManager
- at end
-
- at interface XCRemoteComputerManager() 
- at end 
-
- at interface XCRemoteComputerManager()
- at end
-
- at interface XCRemoteComputerManager(x) 
- at end 
-
- at interface XCRemoteComputerManager(x) // expected-warning {{duplicate interface declaration for category 'XCRemoteComputerManager(x)'}}
- at end
-
- at implementation XCRemoteComputerManager
- at end
-
-

Removed: cfe/trunk/test/Sema/check-dup-decl-methods-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/check-dup-decl-methods-1.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/check-dup-decl-methods-1.m (original)
+++ cfe/trunk/test/Sema/check-dup-decl-methods-1.m (removed)
@@ -1,38 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
- at interface SUPER
-- (int) meth;
-+ (int) foobar;
- at end
-
- at interface T @end
-
- at interface class1 : SUPER
-- (int) meth;	// expected-error {{previous declaration is here}}
-- (int*) meth;	// expected-error {{duplicate declaration of method 'meth'}}
-- (T*) meth1;  
-- (T*) meth1;
-+ (T*) meth1;
- at end
-
- at interface class1(cat)
-- (int) catm : (char)ch1; // expected-error {{previous declaration is here}}
-- (int) catm1 : (char)ch : (int)i;
-- (int) catm : (char*)ch1; // expected-error {{duplicate declaration of method 'catm:'}}
-+ (int) catm1 : (char)ch : (int)i;
-+ (T*) meth1;
- at end
-
- at interface class1(cat1)
-+ (int) catm1 : (char)ch : (int)i; // expected-error {{previous declaration is here}}
-+ (T*) meth1; // expected-error {{previous declaration is here}}
-+ (int) catm1 : (char)ch : (int*)i; // expected-error {{duplicate declaration of method 'catm1::'}}
-+ (T**) meth1; // expected-error {{duplicate declaration of method 'meth1'}}
-+ (int) foobar;
- at end
-
- at protocol P
-- (int) meth; // expected-error {{previous declaration is here}}
-- (int*) meth; // expected-error {{duplicate declaration of method 'meth'}}
- at end
-

Removed: cfe/trunk/test/Sema/check-dup-objc-decls-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/check-dup-objc-decls-1.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/check-dup-objc-decls-1.m (original)
+++ cfe/trunk/test/Sema/check-dup-objc-decls-1.m (removed)
@@ -1,28 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
- at interface Foo // expected-error {{previous definition is here}}
- at end
-
-float Foo;	// expected-error {{redefinition of 'Foo' as different kind of symbol}}
-
- at class Bar;  // expected-error {{previous definition is here}}
-
-typedef int Bar;  // expected-error {{redefinition of 'Bar' as different kind of symbol}}
-
- at implementation FooBar // expected-warning {{cannot find interface declaration for 'FooBar'}} 
- at end
-
-
-typedef int OBJECT; // expected-error {{previous definition is here}}
-
- at class OBJECT ;	// expected-error {{redefinition of 'OBJECT' as different kind of symbol}}
-
-
-typedef int Gorf;  // expected-error {{previous definition is here}}
-
- at interface Gorf @end // expected-error {{redefinition of 'Gorf' as different kind of symbol}}
-
-void Gorf() // expected-error {{redefinition of 'Gorf' as different kind of symbol}}
-{
-	int Bar, Foo, FooBar;
-}

Removed: cfe/trunk/test/Sema/class-conforming-protocol-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/class-conforming-protocol-1.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/class-conforming-protocol-1.m (original)
+++ cfe/trunk/test/Sema/class-conforming-protocol-1.m (removed)
@@ -1,21 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
- at protocol P1 @end
- at protocol P2 @end
- at protocol P3 @end
-
- at interface INTF 
-- (INTF*) METH1;	// expected-error {{previous declaration is here}}
-- (INTF<P1>*) METH1;	// expected-error {{duplicate declaration of method 'METH1'}}
-
-- (INTF<P1,P2>*) METH2;
-- (INTF<P2,P1>*) METH2;  // expected-error {{previous declaration is here}}
-- (INTF<P2,P1,P3>*) METH2;  // expected-error {{duplicate declaration of method 'METH2'}}
-
-- (INTF<P2,P1,P3>*) METH3;
-- (INTF<P3,P1,P2, P3>*) METH3;
-
- at end
-
-INTF<P2,P1,P3>* p1;
-

Removed: cfe/trunk/test/Sema/class-def-test-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/class-def-test-1.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/class-def-test-1.m (original)
+++ cfe/trunk/test/Sema/class-def-test-1.m (removed)
@@ -1,26 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
- at protocol SUPER;
-
- at interface SUPER <SUPER> @end // expected-warning {{cannot find protocol definition for 'SUPER', referenced by 'SUPER'}}
-
-typedef int INTF; //  expected-error {{previous definition is here}}
-
- at interface INTF @end // expected-error {{redefinition of 'INTF' as different kind of symbol}}
-
- at interface OBJECT @end	// expected-error {{previous definition is here}}
-
- at interface INTF1 : OBJECT @end
-
- at interface INTF1 : OBJECT @end // expected-error {{duplicate interface declaration for class 'INTF1'}}
-
-typedef int OBJECT; // expected-error {{previous definition is here}}  \
-		       expected-error {{redefinition of 'OBJECT' as different kind of symbol}}
-
- at interface INTF2 : OBJECT @end // expected-error {{redefinition of 'OBJECT' as different kind of symbol}}
-
-
- at protocol PROTO;
-
- at interface INTF3 : PROTO @end // expected-error {{cannot find interface declaration for 'PROTO', superclass of 'INTF3'}}
-

Removed: cfe/trunk/test/Sema/class-impl-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/class-impl-1.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/class-impl-1.m (original)
+++ cfe/trunk/test/Sema/class-impl-1.m (removed)
@@ -1,33 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
-typedef int INTF3; // expected-error {{previous definition is here}}
-
- at interface SUPER @end // expected-error {{previous definition is here}}
-
- at interface OBJECT @end
-
- at interface INTF  : OBJECT
- at end
-
- at implementation INTF @end 
-
- at implementation INTF //  expected-error {{reimplementation of class 'INTF'}}
- at end
-
-
- at interface INTF1 : OBJECT
- at end
-
- at implementation INTF1 : SUPER // expected-error {{conflicting super class name 'SUPER'}}
- at end
-
- at interface INTF2 
- at end
-
- at implementation INTF2 : SUPR //  expected-error {{cannot find interface declaration for 'SUPR', superclass of 'INTF2'}}
- at end
-
- at implementation INTF3 @end // expected-error {{redefinition of 'INTF3' as different kind of symbol}}
-
- at implementation INTF4 @end // expected-warning {{cannot find interface declaration for 'INTF4'}}
-

Removed: cfe/trunk/test/Sema/class-proto-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/class-proto-1.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/class-proto-1.m (original)
+++ cfe/trunk/test/Sema/class-proto-1.m (removed)
@@ -1,36 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
- at interface INTF1 @end
-
- at protocol p1,p2,p3;
-
- at protocol p1;
-
- at protocol PROTO1
-- (INTF1<p1>*) meth;
- at end
-
- at protocol p1 @end
-
- at interface I1 <p1> @end
-
- at interface E1 <p2> @end	// expected-warning {{cannot find protocol definition for 'p2', referenced by 'E1'}}
-
- at protocol p2 @end
-
-
- at interface I2 <p1,p2> @end
-
- at interface E2 <p1,p2,p3> @end  // expected-warning {{cannot find protocol definition for 'p3', referenced by 'E2'}}
-
- at class U1, U2;
-
- at interface E3 : U1 @end // expected-error {{cannot find interface declaration for 'U1', superclass of 'E3'}}
-
-
- at interface I3 : E3  @end
-
- at interface U2 @end
-
- at interface I4 : U2 <p1,p2>
- at end

Removed: cfe/trunk/test/Sema/cocoa.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/cocoa.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/cocoa.m (original)
+++ cfe/trunk/test/Sema/cocoa.m (removed)
@@ -1,5 +0,0 @@
-// RUN: clang %s -print-stats
-#ifdef __APPLE__
-#include <Cocoa/Cocoa.h>
-#endif
-

Removed: cfe/trunk/test/Sema/compatible-protocol-qualified-types.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/compatible-protocol-qualified-types.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/compatible-protocol-qualified-types.m (original)
+++ cfe/trunk/test/Sema/compatible-protocol-qualified-types.m (removed)
@@ -1,40 +0,0 @@
-// RUN: clang -pedantic -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> {}
- at end
-
-typedef float CGFloat;
-
- at interface NSResponder : NSObject <NSCoding> {}
- at end
-
- at protocol XCSelectionSource;
-
- at interface XCSelection : NSResponder {}
-- (NSObject <XCSelectionSource> *) source;
- at end
-
-extern NSString * const XCActiveSelectionLevel;
-
- at interface XCActionManager : NSResponder {}
-+defaultActionManager;
--selectionAtLevel:(NSString *const)s;
- at end
-
- at implementation XDMenuItemsManager // expected-warning {{cannot find interface declaration for 'XDMenuItemsManager'}}
-+ (void)initialize {
-  id<XCSelectionSource, NSObject> source = 
-    [[[XCActionManager defaultActionManager] selectionAtLevel:XCActiveSelectionLevel] source];
-}
- at end

Removed: cfe/trunk/test/Sema/conditional-expr.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/conditional-expr.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/conditional-expr.m (original)
+++ cfe/trunk/test/Sema/conditional-expr.m (removed)
@@ -1,44 +0,0 @@
-// RUN: clang -fsyntax-only -verify -pedantic %s
- at protocol NSObject
- at end
-
- at protocol DTOutputStreams <NSObject>
- at end
-
- at interface DTFilterOutputStream <DTOutputStreams>
-- nextOutputStream;
- at end
-
- at implementation DTFilterOutputStream
-- (id)initWithNextOutputStream:(id <DTOutputStreams>) outputStream {
-  id <DTOutputStreams> nextOutputStream = [self nextOutputStream];
-  self = nextOutputStream;
-  return nextOutputStream ? nextOutputStream : self;
-}
-- nextOutputStream {
-  return self;
-}
- at end
-
- at interface DTFilterOutputStream2
-- nextOutputStream;
- at end
-
- at implementation DTFilterOutputStream2 // expected-warning {{incomplete implementation}} expected-warning {{method definition for 'nextOutputStream' not found}}
-- (id)initWithNextOutputStream:(id <DTOutputStreams>) outputStream {
-  id <DTOutputStreams> nextOutputStream = [self nextOutputStream];
-  // GCC warns about both of these.
-  self = nextOutputStream; // expected-error {{incompatible type assigning 'id<DTOutputStreams>', expected 'DTFilterOutputStream2 *'}}
-  return nextOutputStream ? nextOutputStream : self; // expected-error {{incompatible operand types ('id<DTOutputStreams>' and 'DTFilterOutputStream2 *')}}
-}
- at end
-
-// No @interface declaration for DTFilterOutputStream3
- at implementation DTFilterOutputStream3 // expected-warning {{cannot find interface declaration for 'DTFilterOutputStream3'}}
-- (id)initWithNextOutputStream:(id <DTOutputStreams>) outputStream {
-  id <DTOutputStreams> nextOutputStream = [self nextOutputStream];
-  // GCC warns about both of these as well (no errors).
-  self = nextOutputStream; // expected-error {{incompatible type assigning 'id<DTOutputStreams>', expected 'DTFilterOutputStream3 *'}}
-  return nextOutputStream ? nextOutputStream : self; // expected-error {{incompatible operand types ('id<DTOutputStreams>' and 'DTFilterOutputStream3 *')}}
-}
- at end

Removed: cfe/trunk/test/Sema/conflicting-ivar-test-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/conflicting-ivar-test-1.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/conflicting-ivar-test-1.m (original)
+++ cfe/trunk/test/Sema/conflicting-ivar-test-1.m (removed)
@@ -1,86 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
- at interface INTF 
-{
- at public
-	int IVAR; // expected-error {{previous definition is here}}
-}
- at end
-
- at implementation INTF
-{
- at private
-
-        int XIVAR; // expected-error {{conflicting instance variable name 'XIVAR'}}
-}
- at end
-
-
-
- at interface INTF1 
-{
- at public
-	int IVAR;
-	int IVAR1; // expected-error {{inconsistent number of instance variables specified}}
-}
- at end
-
- at implementation INTF1
-{
- at private
-
-        int IVAR;
-}
- at end
-
-
- at interface INTF2 
-{
- at public
-	int IVAR;
-}
- at end
-
- at implementation INTF2
-{
- at private
-
-        int IVAR;
-	int IVAR1; // expected-error {{inconsistent number of instance variables specified}}
-}
- at end
-
-
- at interface INTF3
-{
- at public
-	int IVAR; // expected-error {{previous definition is here}}
-}
- at end
-
- at implementation INTF3
-{
- at private
-
-        short IVAR; // expected-error {{conflicting instance variable type}}
-}
- at end
-
- at implementation  INTF4 // expected-warning {{cannot find interface declaration for 'INTF4'}}
-{
- at private
-
-        short IVAR;
-}
- at end
-
- at interface INTF5
-{
-  char * ch;
-}
- at end
-
- at implementation  INTF5
-{
-}
- at end

Removed: cfe/trunk/test/Sema/const-id.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/const-id.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/const-id.m (original)
+++ cfe/trunk/test/Sema/const-id.m (removed)
@@ -1,8 +0,0 @@
-// RUN: clang %s -verify -fsyntax-only
-
-int main() {
-    const id foo;
-    [foo bar];  // expected-warning {{method '-bar' not found (return type defaults to 'id')}}
-    return 0;
-}
-

Removed: cfe/trunk/test/Sema/enhanced-proto-2.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/enhanced-proto-2.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/enhanced-proto-2.m (original)
+++ cfe/trunk/test/Sema/enhanced-proto-2.m (removed)
@@ -1,21 +0,0 @@
-// RUN: clang -verify %s
-
- at protocol MyProto1 
- at optional
-- (void) FOO;
- at optional
-- (void) FOO;
- at optional 
-- (void) REQ;
- at optional
- at end
-
- at interface  MyProto2 <MyProto1>
-- (void) FOO2;
-- (void) FOO3;
- at end
-
- at implementation MyProto2
-- (void) FOO2{}
-- (void) FOO3{}
- at end

Removed: cfe/trunk/test/Sema/format-strings-objc.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/format-strings-objc.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/format-strings-objc.m (original)
+++ cfe/trunk/test/Sema/format-strings-objc.m (removed)
@@ -1,36 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
-//===----------------------------------------------------------------------===//
-// The following code is reduced using delta-debugging from
-// Foundation.h (Mac OS X).
-//
-// It includes the basic definitions for the test cases below.
-// Not including Foundation.h directly makes this test case both svelt and
-// portable to non-Mac platforms.
-//===----------------------------------------------------------------------===//
-
-typedef signed char BOOL;
-typedef unsigned int NSUInteger;
- at class NSString, Protocol;
-extern void NSLog(NSString *format, ...) __attribute__((format(__NSString__, 1, 2)));
-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;
- at interface NSString : NSObject <NSCopying, NSMutableCopying, NSCoding>    - (NSUInteger)length; @end
- at interface NSSimpleCString : NSString {} @end
- at interface NSConstantString : NSSimpleCString @end
-extern void *_NSConstantStringClassReference;
-
-//===----------------------------------------------------------------------===//
-// Test cases.
-//===----------------------------------------------------------------------===//
-
-void check_nslog(unsigned k) {
-  NSLog(@"%d%%", k); // no-warning
-  NSLog(@"%s%lb%d", "unix", 10,20); // expected-warning {{lid conversion '%lb'}}
-}

Removed: cfe/trunk/test/Sema/forward-class-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/forward-class-1.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/forward-class-1.m (original)
+++ cfe/trunk/test/Sema/forward-class-1.m (removed)
@@ -1,24 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
- at class FOO, BAR;
- at class FOO, BAR;
-
- at interface INTF : FOO	// expected-error {{cannot find interface declaration for 'FOO', superclass of 'INTF'}}
- at end
-
- at interface FOO 
-- (BAR*) Meth1;
-- (FOO*) Meth2;
- at end
-
- at interface INTF1 : FOO	
- at end
-
- at interface INTF2 : INTF1
- at end
-
-
- at class INTF1, INTF2;
-
- at interface INTF2 : INTF1 // expected-error {{duplicate interface declaration for class 'INTF2'}}
- at end

Removed: cfe/trunk/test/Sema/gcc-cast-ext.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/gcc-cast-ext.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/gcc-cast-ext.m (original)
+++ cfe/trunk/test/Sema/gcc-cast-ext.m (removed)
@@ -1,24 +0,0 @@
-// RUN: clang %s -verify -fms-extensions
- at class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
-typedef struct _NSRange { } NSRange;
-
- at class PBXFileReference;
-
- at interface PBXDocBookmark
-+ alloc;
-- autorelease;
- at end
-
-// GCC allows pointer expressions in integer constant expressions.
-struct {
-  char control[((int)(char *)2)];
-} xx;
-
- at implementation PBXDocBookmark  // expected-warning {{incomplete implementation}} expected-warning {{method definition for 'autorelease' not found}} expected-warning {{method definition for 'alloc' not found}}
-
-+ (id)bookmarkWithFileReference:(PBXFileReference *)fileRef gylphRange:(NSRange)range anchor:(NSString *)htmlAnchor
-{
-    NSRange r = (NSRange)range;
-    return [[[self alloc] initWithFileReference:fileRef gylphRange:(NSRange)range anchor:(NSString *)htmlAnchor] autorelease];  // expected-warning {{method '-initWithFileReference:gylphRange:anchor:' not found (return type defaults to 'id')}}
-}
- at end

Removed: cfe/trunk/test/Sema/id_builtin.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/id_builtin.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/id_builtin.m (original)
+++ cfe/trunk/test/Sema/id_builtin.m (removed)
@@ -1,10 +0,0 @@
-// RUN: clang %s -fsyntax-only -verify
-
-// id is now builtin. There should be no errors. 
-id obj; 
-
- at interface Foo
-
-- defaultToId; 
-
- at end

Removed: cfe/trunk/test/Sema/incompatible-protocol-qualified-types.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/incompatible-protocol-qualified-types.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/incompatible-protocol-qualified-types.m (original)
+++ cfe/trunk/test/Sema/incompatible-protocol-qualified-types.m (removed)
@@ -1,40 +0,0 @@
-// RUN: clang -pedantic -fsyntax-only -verify %s
-
- at protocol MyProto1 
- at end
-
- at protocol MyProto2 
- at end
-
- at interface INTF @end
-
-INTF <MyProto1> * Func(INTF <MyProto1, MyProto2> *p2)
-{
-	return p2;
-}
-
-
-INTF <MyProto1> * Func1(INTF <MyProto1, MyProto2> *p2)
-{
-	return p2;
-}
-
-INTF <MyProto1, MyProto2> * Func2(INTF <MyProto1> *p2)
-{
-	Func(p2);	// expected-warning {{incompatible pointer types passing 'INTF<MyProto1> *', expected 'INTF<MyProto1,MyProto2> *}}
-	return p2;	// expected-warning {{incompatible pointer types returning 'INTF<MyProto1> *', expected 'INTF<MyProto1,MyProto2> *}}
-}
-
-
-
-INTF <MyProto1> * Func3(INTF <MyProto2> *p2)
-{
-	return p2;	// expected-warning {{incompatible pointer types returning 'INTF<MyProto2> *', expected 'INTF<MyProto1> *}}
-}
-
-
-INTF <MyProto1, MyProto2> * Func4(INTF <MyProto2, MyProto1> *p2)
-{
-	return p2;
-}
-

Removed: cfe/trunk/test/Sema/invalid-objc-decls-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/invalid-objc-decls-1.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/invalid-objc-decls-1.m (original)
+++ cfe/trunk/test/Sema/invalid-objc-decls-1.m (removed)
@@ -1,29 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
- at interface Super @end
-Super s1; // expected-error{{statically allocated Objective-C object 's1'}}
-
-extern Super e1; // expected-error{{statically allocated Objective-C object 'e1'}}
-
-struct S {
-  Super s1; // expected-error{{statically allocated Objective-C object 's1'}}
-};
-
- at protocol P1 @end
-
- at interface INTF
-{
-  Super ivar1; // expected-error{{statically allocated Objective-C object 'ivar1'}}
-}
- at end
-
- at interface MyIntf
-{
-  Super<P1> ivar1; // expected-error{{statically allocated Objective-C object 'ivar1'}}
-}
- at end
-
-Super foo(Super parm1) {
-	Super p1; // expected-error{{statically allocated Objective-C object 'p1'}}
-	return p1;
-}

Removed: cfe/trunk/test/Sema/ivar-sem-check-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/ivar-sem-check-1.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/ivar-sem-check-1.m (original)
+++ cfe/trunk/test/Sema/ivar-sem-check-1.m (removed)
@@ -1,19 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
-struct S;
-typedef int FOO();
-
- at interface INTF
-{
-	struct F {} JJ;
-	int arr[];  // expected-error {{field 'arr' has incomplete type}}
-	struct S IC;  // expected-error {{field 'IC' has incomplete type}}
-	struct T { // expected-error {{previous definition is here}}
-	  struct T {} X;  // expected-error {{nested redefinition of 'struct'}}
-	}YYY; 
-	FOO    BADFUNC;  // expected-error {{field 'BADFUNC' declared as a function}}
-	int kaka;	// expected-error {{previous definition is here}}
-	int kaka;	// expected-error {{duplicate member 'kaka'}}
-	char ch[];	// expected-error {{field 'ch' has incomplete type}}
-}
- at end

Removed: cfe/trunk/test/Sema/message.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/message.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/message.m (original)
+++ cfe/trunk/test/Sema/message.m (removed)
@@ -1,63 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
- at interface foo
-- (void)meth;
- at end
-
- at implementation foo
-- (void) contents {}			// No declaration in @interface!
-- (void) meth { [self contents]; } 
- at end
-
-typedef struct _NSPoint {
-    float x;
-    float y;
-} NSPoint;
-
-typedef struct _NSSize {
-    float width; 
-    float height;
-} NSSize;
-
-typedef struct _NSRect {
-    NSPoint origin;
-    NSSize size;
-} NSRect;
-
- at interface AnyClass
-- (NSRect)rect;
- at end
-
- at class Helicopter;
-
-static void func(Helicopter *obj) {
-  // Note that the proto for "rect" is found in the global pool even when
-  // a statically typed object's class interface isn't in scope! This 
-  // behavior isn't very desirable, however wee need it for GCC compatibility.
-  NSRect r = [obj rect];
-}
-
- at interface NSObject @end
-
-extern Class NSClassFromObject(id object);
-
- at interface XX : NSObject 
- at end
-
- at implementation XX
-
-+ _privateMethod {
-  return self;
-}
-
-- (void) xx {
-  [NSClassFromObject(self) _privateMethod];
-}
- at end
-
- at implementation XX (Private)
-- (void) yy {
-  [NSClassFromObject(self) _privateMethod];
-}
- at end
-

Removed: cfe/trunk/test/Sema/method-def-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/method-def-1.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/method-def-1.m (original)
+++ cfe/trunk/test/Sema/method-def-1.m (removed)
@@ -1,10 +0,0 @@
-// RUN: clang -fsyntax-only %s
-
- at interface foo
-- (int)meth;
- at end
-
- at implementation foo
-- (int) meth { return [self meth]; }
- at end
-

Removed: cfe/trunk/test/Sema/method-def-2.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/method-def-2.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/method-def-2.m (original)
+++ cfe/trunk/test/Sema/method-def-2.m (removed)
@@ -1,19 +0,0 @@
-// RUN: clang -ast-print %s
-extern void abort(void);
-#define CHECK_IF(expr) if(!(expr)) abort()
-
-static double d = 4.5920234e2;
-
- at interface Foo 
--(void) brokenType: (int)x floatingPoint: (double)y;
- at end
-
-
- at implementation Foo
--(void) brokenType: (int)x floatingPoint: (double)y
-{
-        CHECK_IF(x == 459);
-        CHECK_IF(y == d);
-}
- at end
-

Removed: cfe/trunk/test/Sema/method-encoding-2.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/method-encoding-2.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/method-encoding-2.m (original)
+++ cfe/trunk/test/Sema/method-encoding-2.m (removed)
@@ -1,12 +0,0 @@
-// RUN: clang %s
-// TODO: We don't support rewrite of method definitions
-
- at interface Intf 
-- (in out bycopy id) address:(byref inout void *)location with:(out oneway unsigned **)arg2;
-- (id) another:(void *)location with:(unsigned **)arg2;
- at end
-
- at implementation Intf
-- (in out bycopy id) address:(byref inout void *)location with:(out oneway unsigned **)arg2{}
-- (id) another:(void *)location with:(unsigned **)arg2 {}
- at end

Removed: cfe/trunk/test/Sema/method-lookup.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/method-lookup.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/method-lookup.m (original)
+++ cfe/trunk/test/Sema/method-lookup.m (removed)
@@ -1,34 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-typedef signed char BOOL;
-typedef int NSInteger;
-
- at protocol NSObject
-- (BOOL)isEqual:(id)object;
-- (BOOL)respondsToSelector:(SEL)s;
- at end
-
- at interface NSObject <NSObject> {}
- at end
-
- at class NSString, NSData, NSMutableData, NSMutableDictionary, NSMutableArray;
-
- at protocol PBXCompletionItem
-- (NSString *) name;
-- (NSInteger)priority;
-- setPriority:(NSInteger)p;
- at end
-
- at implementation PBXCodeAssistant // expected-warning{{cannot find interface declaration for 'PBXCodeAssistant'}}
-static NSMutableArray * recentCompletions = ((void *)0);
-+ (float) factorForRecentCompletion:(NSString *) completion
-{
-    for (NSObject<PBXCompletionItem> * item in [self completionItems]) // expected-warning{{method '-completionItems' not found (return type defaults to 'id')}}
-    {
-        if ([item respondsToSelector:@selector(setPriority:)])
-        {
-            [(id)item setPriority:[item priority] / [PBXCodeAssistant factorForRecentCompletion:[item name]]];
-        }
-    }
-}
- at end
-

Removed: cfe/trunk/test/Sema/method-not-defined.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/method-not-defined.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/method-not-defined.m (original)
+++ cfe/trunk/test/Sema/method-not-defined.m (removed)
@@ -1,13 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
- at interface Foo
- at end
-
-void test() {
-  Foo *fooObj;
-  id obj;
-
-  [[Foo alloc] init]; // expected-warning {{method '+alloc' not found (return type defaults to 'id')}} expected-warning {{method '-init' not found (return type defaults to 'id')}}
-  [fooObj notdefined]; // expected-warning {{method '-notdefined' not found (return type defaults to 'id')}}
-  [obj whatever:1 :2 :3]; // expected-warning {{method '-whatever:::' not found (return type defaults to 'id'))}}
-}

Removed: cfe/trunk/test/Sema/method-undef-category-warn-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/method-undef-category-warn-1.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/method-undef-category-warn-1.m (original)
+++ cfe/trunk/test/Sema/method-undef-category-warn-1.m (removed)
@@ -1,32 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
- at interface MyClass1 
- at end
-
- at protocol P
-- (void) Pmeth;	
-- (void) Pmeth1;  
- at end
-
- at interface MyClass1(CAT) <P>
-- (void) meth2;	
- at end
-
- at implementation MyClass1(CAT) // expected-warning {{incomplete implementation}} \
-                                 expected-warning {{method definition for 'meth2' not found}} \
-                                 expected-warning {{method definition for 'Pmeth' not found}}
-- (void) Pmeth1{}
- at end
-
- at interface MyClass1(DOG) <P>
-- (void)ppp;   
- at end
-
- at implementation MyClass1(DOG) // expected-warning {{incomplete implementation}} \
-                                 expected-warning {{method definition for 'ppp' not found}} \
-                                 expected-warning {{method definition for 'Pmeth1' not found}}
-- (void) Pmeth {}
- at end
-
- at implementation MyClass1(CAT1)
- at end

Removed: cfe/trunk/test/Sema/method-undefined-warn-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/method-undefined-warn-1.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/method-undefined-warn-1.m (original)
+++ cfe/trunk/test/Sema/method-undefined-warn-1.m (removed)
@@ -1,42 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
- at interface INTF
-- (void) meth;
-- (void) meth : (int) arg1;
-- (int)  int_meth; 
-+ (int) cls_meth;
-+ (void) cls_meth1 : (int) arg1; 
- at end
-
- at implementation INTF 	// expected-warning {{incomplete implementation}} expected-warning {{method definition for 'int_meth' not found}} expected-warning {{method definition for 'cls_meth' not found}} expected-warning {{method definition for 'cls_meth1:' not found}}
-- (void) meth {}
-- (void) meth : (int) arg2{}
-- (void) cls_meth1 : (int) arg2{}
- at end
-
- at interface INTF1
-- (void) meth;
-- (void) meth : (int) arg1;
-- (int)  int_meth;      
-+ (int) cls_meth;       
-+ (void) cls_meth1 : (int) arg1; 
- at end
-
- at implementation INTF1 // expected-warning {{incomplete implementation}} expected-warning {{method definition for 'int_meth' not found}} expected-warning {{method definition for 'cls_meth' not found}} expected-warning {{method definition for 'cls_meth1:' not found}}
-- (void) meth {}
-- (void) meth : (int) arg2{}
-- (void) cls_meth1 : (int) arg2{}
- at end
-
- at interface INTF2
-- (void) meth;
-- (void) meth : (int) arg1;
-- (void) cls_meth1 : (int) arg1; 
- at end
-
- at implementation INTF2
-- (void) meth {}
-- (void) meth : (int) arg2{}
-- (void) cls_meth1 : (int) arg2{}
- at end
-

Removed: cfe/trunk/test/Sema/missing-method-context.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/missing-method-context.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/missing-method-context.m (original)
+++ cfe/trunk/test/Sema/missing-method-context.m (removed)
@@ -1,4 +0,0 @@
-// RUN: clang %s -verify -fsyntax-only
-- (void)compilerTestAgainst;  // expected-error {{missing context for method declaration}}
-
-void xx();  // expected-error {{expected method body}}

Removed: cfe/trunk/test/Sema/objc-at-defs.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-at-defs.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/objc-at-defs.m (original)
+++ cfe/trunk/test/Sema/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/Sema/objc-bad-receiver-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-bad-receiver-1.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/objc-bad-receiver-1.m (original)
+++ cfe/trunk/test/Sema/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/Sema/objc-comptypes-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-comptypes-1.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/objc-comptypes-1.m (original)
+++ cfe/trunk/test/Sema/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/Sema/objc-comptypes-2.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-comptypes-2.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/objc-comptypes-2.m (original)
+++ cfe/trunk/test/Sema/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/Sema/objc-comptypes-3.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-comptypes-3.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/objc-comptypes-3.m (original)
+++ cfe/trunk/test/Sema/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/Sema/objc-comptypes-4.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-comptypes-4.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/objc-comptypes-4.m (original)
+++ cfe/trunk/test/Sema/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/Sema/objc-comptypes-5.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-comptypes-5.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/objc-comptypes-5.m (original)
+++ cfe/trunk/test/Sema/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/Sema/objc-comptypes-6.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-comptypes-6.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/objc-comptypes-6.m (original)
+++ cfe/trunk/test/Sema/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/Sema/objc-comptypes-7.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-comptypes-7.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/objc-comptypes-7.m (original)
+++ cfe/trunk/test/Sema/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/Sema/objc-comptypes-8.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-comptypes-8.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/objc-comptypes-8.m (original)
+++ cfe/trunk/test/Sema/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/Sema/objc-comptypes-9.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-comptypes-9.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/objc-comptypes-9.m (original)
+++ cfe/trunk/test/Sema/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/Sema/objc-interface-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-interface-1.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/objc-interface-1.m (original)
+++ cfe/trunk/test/Sema/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/Sema/objc-interface-layout.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-interface-layout.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/objc-interface-layout.m (original)
+++ cfe/trunk/test/Sema/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/Sema/objc-ivar-lookup.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-ivar-lookup.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/objc-ivar-lookup.m (original)
+++ cfe/trunk/test/Sema/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/Sema/objc-legacy-implementation-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-legacy-implementation-1.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/objc-legacy-implementation-1.m (original)
+++ cfe/trunk/test/Sema/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/Sema/objc-method-lookup.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-method-lookup.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/objc-method-lookup.m (original)
+++ cfe/trunk/test/Sema/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/Sema/objc-property-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-property-1.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/objc-property-1.m (original)
+++ cfe/trunk/test/Sema/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/Sema/objc-property-2.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-property-2.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/objc-property-2.m (original)
+++ cfe/trunk/test/Sema/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/Sema/objc-property-3.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-property-3.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/objc-property-3.m (original)
+++ cfe/trunk/test/Sema/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/Sema/objc-property-4.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-property-4.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/objc-property-4.m (original)
+++ cfe/trunk/test/Sema/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/Sema/objc-property-5.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-property-5.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/objc-property-5.m (original)
+++ cfe/trunk/test/Sema/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/Sema/objc-property-6.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-property-6.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/objc-property-6.m (original)
+++ cfe/trunk/test/Sema/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/Sema/objc-property-7.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-property-7.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/objc-property-7.m (original)
+++ cfe/trunk/test/Sema/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/Sema/objc-property-8.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-property-8.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/objc-property-8.m (original)
+++ cfe/trunk/test/Sema/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/Sema/objc-property-9-impl-method.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-property-9-impl-method.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/objc-property-9-impl-method.m (original)
+++ cfe/trunk/test/Sema/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/Sema/objc-props-on-prots.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-props-on-prots.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/objc-props-on-prots.m (original)
+++ cfe/trunk/test/Sema/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/Sema/objc-protocol-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-protocol-1.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/objc-protocol-1.m (original)
+++ cfe/trunk/test/Sema/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/Sema/objc-string.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-string.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/objc-string.m (original)
+++ cfe/trunk/test/Sema/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/Sema/objc-synchronized.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-synchronized.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/objc-synchronized.m (original)
+++ cfe/trunk/test/Sema/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/Sema/objc-try-catch.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-try-catch.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/objc-try-catch.m (original)
+++ cfe/trunk/test/Sema/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/Sema/objc-typedef-class.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-typedef-class.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/objc-typedef-class.m (original)
+++ cfe/trunk/test/Sema/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/Sema/objc-types-compatible.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-types-compatible.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/objc-types-compatible.m (original)
+++ cfe/trunk/test/Sema/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/Sema/objc-unused.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-unused.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/objc-unused.m (original)
+++ cfe/trunk/test/Sema/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;
-}
-

Removed: cfe/trunk/test/Sema/protocol-expr-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/protocol-expr-1.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/protocol-expr-1.m (original)
+++ cfe/trunk/test/Sema/protocol-expr-1.m (removed)
@@ -1,15 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
- at protocol fproto;
-
- at protocol p1 
- at end
-
- at class cl;
-
-int main()
-{
-	Protocol *proto = @protocol(p1);
-        Protocol *fproto = @protocol(fproto);
-}
-

Removed: cfe/trunk/test/Sema/protocol-expr-neg-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/protocol-expr-neg-1.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/protocol-expr-neg-1.m (original)
+++ cfe/trunk/test/Sema/protocol-expr-neg-1.m (removed)
@@ -1,19 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
- at class Protocol;
-
- at protocol fproto;
-
- at protocol p1 
- at end
-
- at class cl;
-
-int main()
-{
-	Protocol *proto = @protocol(p1);
-        Protocol *fproto = @protocol(fproto);
-	Protocol *pp = @protocol(i); // expected-error {{cannot find protocol declaration for 'i'}}
-	Protocol *p1p = @protocol(cl); // expected-error {{cannot find protocol declaration for 'cl'}}
-}
-

Removed: cfe/trunk/test/Sema/protocol-id-test-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/protocol-id-test-1.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/protocol-id-test-1.m (original)
+++ cfe/trunk/test/Sema/protocol-id-test-1.m (removed)
@@ -1,16 +0,0 @@
-// RUN: clang -verify %s
-
- at interface FF
-- (void) Meth;
- at end
-
- at protocol P
- at end
-
- at interface INTF<P>
-- (void)IMeth;
- at end
-
- at implementation INTF
-- (void)IMeth {INTF<P> *pi;  [pi Meth]; } // expected-warning {{method '-Meth' not found in protocol (return type defaults to 'id')}}
- at end

Removed: cfe/trunk/test/Sema/protocol-id-test-2.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/protocol-id-test-2.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/protocol-id-test-2.m (original)
+++ cfe/trunk/test/Sema/protocol-id-test-2.m (removed)
@@ -1,14 +0,0 @@
-// RUN: clang -verify %s
-
- at protocol P
- at end
-
- at interface INTF<P>
-- (void)IMeth;
- - (void) Meth;
- at end
-
- at implementation INTF
-- (void)IMeth { [(id<P>)self Meth]; }  // expected-warning {{method '-Meth' not found in protocol (return type defaults to 'id')}}
-- (void) Meth {}
- at end

Removed: cfe/trunk/test/Sema/protocol-id-test-3.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/protocol-id-test-3.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/protocol-id-test-3.m (original)
+++ cfe/trunk/test/Sema/protocol-id-test-3.m (removed)
@@ -1,94 +0,0 @@
-// RUN: clang -pedantic -fsyntax-only -verify %s
-
- at protocol MyProto1 
- at end
-
- at protocol MyProto2 
- at end
-
- at interface INTF @end
-
-id<MyProto1> Func(INTF <MyProto1, MyProto2> *p2)
-{
-	return p2;
-}
-
-
-
-
- id<MyProto1> Gunc(id <MyProto1, MyProto2>p2)
-{
-	return p2;
-}
-
-
- id<MyProto1> Gunc1(id <MyProto1, MyProto2>p2)
-{
-	return p2;
-}
-
-id<MyProto1, MyProto2> Gunc2(id <MyProto1>p2)
-{
-	Func(p2);	// expected-error {{incompatible type passing 'id<MyProto1>', expected 'INTF<MyProto1,MyProto2> *'}}
-	return p2;	// expected-error {{incompatible type returning 'id<MyProto1>', expected 'id<MyProto1,MyProto2>'}}
-}
-
-
-
-id<MyProto1> Gunc3(id <MyProto2>p2)
-{
-	return p2;	 // expected-error {{incompatible type returning 'id<MyProto2>', expected 'id<MyProto1>'}}
-}
-
-
-id<MyProto1, MyProto2> Gunc4(id <MyProto2, MyProto1>p2)
-{
-	return p2;
-}
-
-
-
-INTF<MyProto1> * Hunc(id <MyProto1, MyProto2>p2)
-{
-	return p2;
-}
-
-
-INTF<MyProto1> * Hunc1(id <MyProto1, MyProto2>p2)
-{
-	return p2;
-}
-
-INTF<MyProto1, MyProto2> * Hunc2(id <MyProto1>p2)
-{
-	Func(p2);	// expected-error {{incompatible type passing 'id<MyProto1>', expected 'INTF<MyProto1,MyProto2> *'}}
-	return p2;	// expected-error {{incompatible type returning 'id<MyProto1>', expected 'INTF<MyProto1,MyProto2> *'}}
-}
-
-INTF<MyProto1> * Hunc3(id <MyProto2>p2)
-{
-	return p2;	 // expected-error {{incompatible type returning 'id<MyProto2>', expected 'INTF<MyProto1> *'}}
-}
-
-
-INTF<MyProto1, MyProto2> * Hunc4(id <MyProto2, MyProto1>p2)
-{
-	return p2;
-}
-
-id Iunc(id <MyProto1, MyProto2>p2)
-{
-	return p2;
-}
-
-
-id<MyProto1> Iunc1(id p2)
-{
-	return p2;
-}
-
-id<MyProto1, MyProto2> Iunc2(id p2)
-{
-	Iunc(p2);	
-	return p2;
-}

Removed: cfe/trunk/test/Sema/protocol-test-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/protocol-test-1.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/protocol-test-1.m (original)
+++ cfe/trunk/test/Sema/protocol-test-1.m (removed)
@@ -1,20 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
- at protocol PROTO1
- at required 
-- (int) FooBar;
- at optional
-- (void) MyMethod1;
-+ (int) S;
- at end
-
- at interface INTF1
- at required  // expected-error {{@required may be specified in protocols only}}
-- (int) FooBar;
-- (int) FooBar1;
-- (int) FooBar2;
- at optional  // expected-error {{@optional may be specified in protocols only}}
-+ (int) C;
-
-- (int)I;
- at end

Removed: cfe/trunk/test/Sema/protocol-test-2.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/protocol-test-2.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/protocol-test-2.m (original)
+++ cfe/trunk/test/Sema/protocol-test-2.m (removed)
@@ -1,31 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
- at interface INTF1 @end
-
- at protocol p1,p2,p3;
-
- at protocol p1;
-
- at protocol PROTO1
-- (INTF1<p1>*) meth;
- at end
-
- at protocol PROTO2<p1> // expected-warning {{cannot find protocol definition for 'p1', referenced by 'PROTO2'}}
- at end
-
- at protocol p1 @end
-
- at protocol PROTO<p1>
- at end
-
- at protocol PROTO<p1>	// expected-error {{duplicate protocol declaration of 'PROTO'}}
- at end
-
- at protocol PROTO3<p1, p1>
- at end
-
- at protocol p2 <p1>
- at end
-
- at protocol PROTO4 <p1, p2, PROTO, PROTO3, p3> // expected-warning {{cannot find protocol definition for 'p3', referenced by 'PROTO4'}}
- at end

Removed: cfe/trunk/test/Sema/selector-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/selector-1.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/selector-1.m (original)
+++ cfe/trunk/test/Sema/selector-1.m (removed)
@@ -1,14 +0,0 @@
-// RUN: clang -verify %s 
-
-int main() {
- SEL s = @selector(retain);
- SEL s1 = @selector(meth1:);
- SEL s2 = @selector(retainArgument::);
- SEL s3 = @selector(retainArgument:::::);
- SEL s4 = @selector(retainArgument:with:);
- SEL s5 = @selector(meth1:with:with:);
- SEL s6 = @selector(getEnum:enum:bool:);
- SEL s7 = @selector(char:float:double:unsigned:short:long:);
-
- SEL s9 = @selector(:enum:bool:);
-}

Removed: cfe/trunk/test/Sema/selector-overload.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/selector-overload.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/selector-overload.m (original)
+++ cfe/trunk/test/Sema/selector-overload.m (removed)
@@ -1,47 +0,0 @@
-// RUN: clang %s -fsyntax-only
-
- at interface NSObject
-+ alloc;
-- init;
- at end
-
-struct D {
-  double d;
-};
-
- at interface Foo : NSObject 
-
-- method:(int)a;
-- method:(int)a;
-
- at end
-
- at interface Bar : NSObject 
-
-- method:(void *)a;
-
- at end
-
- at interface Car : NSObject 
-
-- method:(struct D)a;
-
- at end
-
- at interface Zar : NSObject 
-
-- method:(float)a;
-
- at end
-
- at interface Rar : NSObject 
-
-- method:(float)a;
-
- at end
-
-int main() {
-  id xx = [[Car alloc] init]; // expected-warning {{incompatible types assigning 'int' to 'id'}}
-
-  [xx method:4];
-}

Removed: cfe/trunk/test/Sema/static-ivar-ref-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/static-ivar-ref-1.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/static-ivar-ref-1.m (original)
+++ cfe/trunk/test/Sema/static-ivar-ref-1.m (removed)
@@ -1,16 +0,0 @@
-// RUN: clang -ast-print %s
-
- at interface current 
-{
-  int ivar;
-  int ivar1;
-  int ivar2;
-}
- at end
-
-current *pc;
-
-int foo()
-{
-	return pc->ivar2 + (*pc).ivar + pc->ivar1;
-}

Removed: cfe/trunk/test/Sema/undef-protocol-methods-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/undef-protocol-methods-1.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/undef-protocol-methods-1.m (original)
+++ cfe/trunk/test/Sema/undef-protocol-methods-1.m (removed)
@@ -1,42 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
- at protocol P1
-- (void) P1proto;
-+ (void) ClsP1Proto;  
-- (void) DefP1proto;
- at end
- at protocol P2
-- (void) P2proto;  
-+ (void) ClsP2Proto; 
- at end
-
- at protocol P3<P2>
-- (void) P3proto; 
-+ (void) ClsP3Proto; 
-+ (void) DefClsP3Proto;
- at end
-
- at protocol PROTO<P1, P3>
-- (void) meth;		
-- (void) meth : (int) arg1; 
-+ (void) cls_meth : (int) arg1; 
- at end
-
- at interface INTF <PROTO>
- at end
-
- at implementation INTF   // expected-warning {{incomplete implementation}} \
-                          expected-warning {{method definition for 'meth' not found}} \
-                          expected-warning {{method definition for 'meth:' not found}} \
-                          expected-warning {{method definition for 'cls_meth:' not found}} \
-                          expected-warning {{method definition for 'P3proto' not found}} \
-                          expected-warning {{method definition for 'ClsP3Proto' not found}} \
-                          expected-warning {{method definition for 'P2proto' not found}} \
-                          expected-warning {{method definition for 'ClsP2Proto' not found}} \
-                          expected-warning {{method definition for 'ClsP1Proto' not found}} \
-                          expected-warning {{method definition for 'P1proto' not found}}
-- (void) DefP1proto{}
-
-+ (void) DefClsP3Proto{}
-
- at end

Removed: cfe/trunk/test/Sema/undef-superclass-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/undef-superclass-1.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/undef-superclass-1.m (original)
+++ cfe/trunk/test/Sema/undef-superclass-1.m (removed)
@@ -1,26 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
- at class SUPER, Y;
-
- at interface INTF :SUPER  // expected-error {{cannot find interface declaration for 'SUPER', superclass of 'INTF'}}
- at end
-
- at interface SUPER @end
-
- at interface INTF1 : SUPER
- at end
-
- at interface INTF2 : INTF1
- at end
-
- at interface INTF3 : Y // expected-error {{cannot find interface declaration for 'Y', superclass of 'INTF3'}}
- at end
-
- at interface INTF1  // expected-error {{duplicate interface declaration for class 'INTF1'}}
- at end
-
- at implementation SUPER
-- (void)dealloc {
-    [super dealloc]; // expected-error {{no super class declared in @interface for 'SUPER'}}
-}
- at end

Removed: cfe/trunk/test/Sema/undefined-protocol-type-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/undefined-protocol-type-1.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/undefined-protocol-type-1.m (original)
+++ cfe/trunk/test/Sema/undefined-protocol-type-1.m (removed)
@@ -1,9 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
- at protocol p1, p4;
- at protocol p2 @end
-
- at interface T
-- (T<p2, p3, p1, p4>*) meth;  // expected-error {{cannot find protocol declaration for 'p3'}}
-- (T<p2, p3, p1, p4>*) meth;  // expected-error {{cannot find protocol declaration for 'p3'}}
- at end

Removed: cfe/trunk/test/Sema/va-method-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/va-method-1.m?rev=54083&view=auto

==============================================================================
--- cfe/trunk/test/Sema/va-method-1.m (original)
+++ cfe/trunk/test/Sema/va-method-1.m (removed)
@@ -1,17 +0,0 @@
-// RUN: clang -fsyntax-only -verify %s
-
-#include <stdarg.h>
-
- at interface NSObject @end
- at interface XX : NSObject @end
-
- at implementation XX
-- (void)encodeValuesOfObjCTypes:(const char *)types, ... {
-   va_list ap;
-   va_start(ap, types); 
-   while (*types) ;
-   va_end(ap);
-}
-
- at end
-





More information about the cfe-commits mailing list