| Chris Lattner | 3508084 | 2008-02-02 20:20:10 +0000 | [diff] [blame] | 1 | // RUN: clang %s -verify -pedantic -fsyntax-only |
| 2 | |||||
| 3 | // PR1966 | ||||
| 4 | _Complex double test1() { | ||||
| 5 | return __extension__ 1.0if; | ||||
| 6 | } | ||||
| 7 | |||||
| 8 | _Complex double test2() { | ||||
| 9 | return 1.0if; // expected-warning {{imaginary constants are an extension}} | ||||
| 10 | } | ||||
| 11 | |||||
| Chris Lattner | baf0d66 | 2008-07-25 18:07:19 +0000 | [diff] [blame^] | 12 | // rdar://6097308 |
| 13 | void test3() { | ||||
| 14 | int x; | ||||
| 15 | (__extension__ x) = 10; | ||||
| 16 | } | ||||
| 17 | |||||