Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -ast-print %s |
Fariborz Jahanian | db8f3d3 | 2007-11-10 20:59:13 +0000 | [diff] [blame] | 2 | extern void abort(void); |
3 | #define CHECK_IF(expr) if(!(expr)) abort() | ||||
4 | |||||
5 | static double d = 4.5920234e2; | ||||
6 | |||||
7 | @interface Foo | ||||
8 | -(void) brokenType: (int)x floatingPoint: (double)y; | ||||
9 | @end | ||||
10 | |||||
11 | |||||
12 | @implementation Foo | ||||
13 | -(void) brokenType: (int)x floatingPoint: (double)y | ||||
14 | { | ||||
15 | CHECK_IF(x == 459); | ||||
16 | CHECK_IF(y == d); | ||||
17 | } | ||||
18 | @end | ||||
19 |