Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / testsuite / gcc.dg / cpp / pr7263-3.c
1 /* PR 7263:  __extension__ keyword doesn't suppress warning on LL or ULL constants.  */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c99 -pedantic-errors -ftrack-macro-expansion=0" } */
4 #include "pr7263-3.h"
5 __complex__  bar () /* { dg-error "ISO C does not support plain .complex. meaning .double complex." } */
6 {
7   return _Complex_I_ext;
8 }
9
10 __extension__ __complex__ 
11 bar2 ()
12 {
13   return _Complex_I;
14 }
15
16 __complex__ bar3 () /* { dg-error "ISO C does not support plain .complex. meaning .double complex." } */
17 {
18   return _Complex_I; /* { dg-error "imaginary constants are a GCC extension" } */
19 }