libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / c23-qual-7.c
blobd18fc34e8c1fd8cdce523c0ab6d3bdec526a15c4
1 /* Tests related to qualifiers and pointers to arrays in C23, PR98397 */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c23 -pedantic-errors" } */
5 /* test that _Atomic qualifier is not preserved in tertiary operator for pointers to arrays in C23 */
7 void f(void)
9 _Atomic void *u;
10 void *v;
11 _Static_assert(_Generic(1 ? u : v, _Atomic void*: 0, void*: 1), "_Atomic should be removed");
12 _Static_assert(_Generic(1 ? v : u, _Atomic void*: 0, void*: 1), "_Atomic should be removed");