2009-12-16 04:14:24 +08:00
|
|
|
/* RUN: %clang_cc1 %s -fsyntax-only -pedantic -verify -std=c89
|
2009-05-17 07:40:44 +08:00
|
|
|
*/
|
2007-08-11 04:57:02 +08:00
|
|
|
|
2009-05-17 07:40:44 +08:00
|
|
|
/* Top level extension marker. */
|
2007-08-11 04:57:02 +08:00
|
|
|
|
|
|
|
__extension__ typedef struct
|
|
|
|
{
|
|
|
|
long long int quot;
|
|
|
|
long long int rem;
|
2009-05-17 07:40:44 +08:00
|
|
|
} lldiv_t;
|
2007-08-27 09:01:57 +08:00
|
|
|
|
|
|
|
|
2009-05-17 07:40:44 +08:00
|
|
|
/* Decl/expr __extension__ marker. */
|
2007-08-27 09:01:57 +08:00
|
|
|
void bar() {
|
|
|
|
__extension__ int i;
|
|
|
|
int j;
|
2009-05-17 07:40:44 +08:00
|
|
|
__extension__ (j = 10LL);
|
|
|
|
__extension__ j = 10LL; /* expected-warning {{'long long' is an extension}} */
|
2007-08-27 09:01:57 +08:00
|
|
|
}
|
|
|
|
|