view gcc/testsuite/gcc.dg/cpp/pr7263-3.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900 (2020-05-25)
parents 04ced10e8804
children
line wrap: on
line source
/* PR 7263:  __extension__ keyword doesn't suppress warning on LL or ULL constants.  */
/* { dg-do compile } */
/* { dg-options "-std=c99 -pedantic-errors -ftrack-macro-expansion=0" } */
#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" } */
}