xref: /minix3/external/bsd/llvm/dist/clang/test/SemaObjC/method-def-2.m (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -ast-print %s
2*f4a2713aSLionel Sambucextern void abort(void);
3*f4a2713aSLionel Sambuc#define CHECK_IF(expr) if(!(expr)) abort()
4*f4a2713aSLionel Sambuc
5*f4a2713aSLionel Sambucstatic double d = 4.5920234e2;
6*f4a2713aSLionel Sambuc
7*f4a2713aSLionel Sambuc@interface Foo
8*f4a2713aSLionel Sambuc-(void) brokenType: (int)x floatingPoint: (double)y;
9*f4a2713aSLionel Sambuc@end
10*f4a2713aSLionel Sambuc
11*f4a2713aSLionel Sambuc
12*f4a2713aSLionel Sambuc@implementation Foo
13*f4a2713aSLionel Sambuc-(void) brokenType: (int)x floatingPoint: (double)y
14*f4a2713aSLionel Sambuc{
15*f4a2713aSLionel Sambuc        CHECK_IF(x == 459);
16*f4a2713aSLionel Sambuc        CHECK_IF(y == d);
17*f4a2713aSLionel Sambuc}
18*f4a2713aSLionel Sambuc@end
19*f4a2713aSLionel Sambuc
20