Temporary fix to test case. This area is currently under construction...test case will be changing again soon.
llvm-svn: 42914
This commit is contained in:
parent
d502a82092
commit
b213da2a70
|
@ -1,5 +1,10 @@
|
||||||
// RUN: clang %s -fsyntax-only
|
// RUN: clang %s -fsyntax-only
|
||||||
#import <Foundation/NSObject.h>
|
|
||||||
|
typedef struct objc_object *id;
|
||||||
|
@interface NSObject
|
||||||
|
+ alloc;
|
||||||
|
- init;
|
||||||
|
@end
|
||||||
|
|
||||||
struct D {
|
struct D {
|
||||||
double d;
|
double d;
|
||||||
|
@ -37,7 +42,7 @@ struct D {
|
||||||
@end
|
@end
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
id xx = [[Car alloc] init];
|
id xx = [[Car alloc] init]; // expected-warning {{incompatible types assigning 'int' to 'id'}}
|
||||||
|
|
||||||
[xx method:4];
|
[xx method:4];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue