summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/pr7263-3.c
blob: efa619ad3cd392487d1db5a7495647e8a20093ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* PR 7263:  __extension__ keyword doesn't suppress warning on LL or ULL constants.  */
/* { dg-do compile } */
/* { dg-options "-std=c99 -pedantic-errors" } */
#include "pr7263-3.h"
__complex__  bar () /* { dg-error "ISO C does not support plain .complex. meaning .double complex." } */
{
  return _Complex_I_ext;
}

__extension__ __complex__ 
bar2 ()
{
  return _Complex_I;
}

__complex__ bar3 () /* { dg-error "ISO C does not support plain .complex. meaning .double complex." } */
{
  return _Complex_I; /* { dg-error "imaginary constants are a GCC extension" } */
}