]> granicus.if.org Git - clang/commitdiff
Temporary fix to test case. This area is currently under construction...test case...
authorSteve Naroff <snaroff@apple.com>
Fri, 12 Oct 2007 16:15:17 +0000 (16:15 +0000)
committerSteve Naroff <snaroff@apple.com>
Fri, 12 Oct 2007 16:15:17 +0000 (16:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42914 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/selector-overload.m

index 7cec1c246ec6aaa5bb62183dda3c11823cd52654..e84d21432c6f0f2a26eb018659e0ba41d45ac06b 100644 (file)
@@ -1,5 +1,10 @@
 // RUN: clang %s -fsyntax-only
-#import <Foundation/NSObject.h>
+
+typedef struct objc_object *id;
+@interface NSObject
++ alloc;
+- init;
+@end
 
 struct D {
   double d;
@@ -37,7 +42,7 @@ struct D {
 @end
 
 int main() {
-  id xx = [[Car alloc] init];
+  id xx = [[Car alloc] init]; // expected-warning {{incompatible types assigning 'int' to 'id'}}
 
   [xx method:4];
 }