aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/builtin-complex-err-2.c
blob: be5ff65fdab9e21d5dcc412f0afdd0a9ecee9e0f (plain)
1
2
3
4
5
6
7
8
9
10
/* Test __builtin_complex errors.  Verify it does not allow quiet
   creation of complex types in C90.  */
/* { dg-do compile } */
/* { dg-options "-std=c90 -pedantic-errors" } */

void
f (void)
{
  __builtin_complex (0.0, 0.0); /* { dg-error "ISO C90 does not support complex types" } */
}