Eli Friedman | bc6c848 | 2009-05-16 23:40:44 +0000 | [diff] [blame^] | 1 | /* RUN: clang-cc %s -fsyntax-only -pedantic -verify -std=c89 |
| 2 | */ |
Chris Lattner | c301815 | 2007-08-10 20:57:02 +0000 | [diff] [blame] | 3 | |
Eli Friedman | bc6c848 | 2009-05-16 23:40:44 +0000 | [diff] [blame^] | 4 | /* Top level extension marker. */ |
Chris Lattner | c301815 | 2007-08-10 20:57:02 +0000 | [diff] [blame] | 5 | |
| 6 | __extension__ typedef struct |
| 7 | { |
| 8 | long long int quot; |
| 9 | long long int rem; |
Eli Friedman | bc6c848 | 2009-05-16 23:40:44 +0000 | [diff] [blame^] | 10 | } lldiv_t; |
Chris Lattner | 45a566c | 2007-08-27 01:01:57 +0000 | [diff] [blame] | 11 | |
| 12 | |
Eli Friedman | bc6c848 | 2009-05-16 23:40:44 +0000 | [diff] [blame^] | 13 | /* Decl/expr __extension__ marker. */ |
Chris Lattner | 45a566c | 2007-08-27 01:01:57 +0000 | [diff] [blame] | 14 | void bar() { |
| 15 | __extension__ int i; |
| 16 | int j; |
Eli Friedman | bc6c848 | 2009-05-16 23:40:44 +0000 | [diff] [blame^] | 17 | __extension__ (j = 10LL); |
| 18 | __extension__ j = 10LL; /* expected-warning {{'long long' is an extension}} */ |
Chris Lattner | 45a566c | 2007-08-27 01:01:57 +0000 | [diff] [blame] | 19 | } |
| 20 | |