aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/builtin-complex-err-2.c
blob: c285b2a0aa31cba49416395568ec14cd0eb0e751 (plain)
1
2
3
4
5
6
7
8
9
10
/* Test __builtin_complex errors.  Verify it does nto 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" } */
}