[cfe-commits] r42914 - /cfe/trunk/test/Sema/selector-overload.m

Steve Naroff snaroff at apple.com
Fri Oct 12 09:15:17 PDT 2007


Author: snaroff
Date: Fri Oct 12 11:15:17 2007
New Revision: 42914

URL: http://llvm.org/viewvc/llvm-project?rev=42914&view=rev
Log:
Temporary fix to test case. This area is currently under construction...test case will be changing again soon.


Modified:
    cfe/trunk/test/Sema/selector-overload.m

Modified: cfe/trunk/test/Sema/selector-overload.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/selector-overload.m?rev=42914&r1=42913&r2=42914&view=diff

==============================================================================
--- cfe/trunk/test/Sema/selector-overload.m (original)
+++ cfe/trunk/test/Sema/selector-overload.m Fri Oct 12 11:15:17 2007
@@ -1,5 +1,10 @@
 // RUN: clang %s -fsyntax-only
-#import <Foundation/NSObject.h>
+
+typedef struct objc_object *id;
+ at interface NSObject
++ alloc;
+- init;
+ at end
 
 struct D {
   double d;
@@ -37,7 +42,7 @@
 @end
 
 int main() {
-  id xx = [[Car alloc] init];
+  id xx = [[Car alloc] init]; // expected-warning {{incompatible types assigning 'int' to 'id'}}
 
   [xx method:4];
 }





More information about the cfe-commits mailing list