Remove a fixme which was fixed in a previous commit.
[clang.git] / test / SemaObjC / ivar-lookup.m
blob06e47116f73ca23ad8c733f707fedfd7504b9109
1 // RUN: %clang_cc1 %s -fsyntax-only -verify
3 @interface Test {
4    int x;
7 -(void) setX: (int) d;
8 @end
10 extern struct foo x;
12 @implementation Test
14 -(void) setX: (int) n {
15    x = n;
18 @end
20 @interface Ivar
21 - (float*)method;
22 @end
24 @interface A {
25   A *Ivar;
27 - (int*)method;
28 @end
30 @implementation A
31 - (int*)method {
32   int *ip = [Ivar method]; // expected-warning{{warning: incompatible pointer types initializing 'int *' with an expression of type 'float *'}}
33                            // Note that there is no warning in Objective-C++
34   return 0;
36 @end