OSDN Git Service

2011-11-04 Tom de Vries <tom@codesourcery.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / builtin-complex-err-2.c
1 /* Test __builtin_complex errors.  Verify it does nto allow quiet
2    creation of complex types in C90.  */
3 /* { dg-do compile } */
4 /* { dg-options "-std=c90 -pedantic-errors" } */
5
6 void
7 f (void)
8 {
9   __builtin_complex (0.0, 0.0); /* { dg-error "ISO C90 does not support complex types" } */
10 }