Debian Codegraph @

gcc/testsuite/gcc.dg/c2y-imaginary-constants-10.c

raw
1 /* Test that imaginary constants are accepted in C2Y mode: compat warnings. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c2y -Wc23-c2y-compat" } */
4 /* { dg-add-options float64x } */
5 /* { dg-require-effective-target float64x } */
6
7 _Complex _Float64x a = 1.if64x; /* { dg-warning "imaginary constants are a C2Y feature" } */
8 _Complex _Float64x b = 2.F64xj; /* { dg-warning "imaginary constants are a C2Y feature" } */
9 _Complex _Float64x c = 3.f64xi; /* { dg-warning "imaginary constants are a C2Y feature" } */
10 _Complex _Float64x d = 4.JF64x; /* { dg-warning "imaginary constants are a C2Y feature" } */
11 __extension__ _Complex _Float64x e = 1.if64x;
12 __extension__ _Complex _Float64x f = 2.F64xj;
13 __extension__ _Complex _Float64x g = 3.f64xi;
14 __extension__ _Complex _Float64x h = 4.JF64x;