☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gcc.dg
/
c23-tag-composite-4.c
☽
☼
gcc/testsuite/gcc.dg/c23-tag-composite-4.c
code
plain
raw
1
/* { dg-do compile }
2
* { dg-options "-std=c23" }
3
*/
4
5
// conditional operator
6
7
void f(void)
8
{
9
struct foo { int x; } a;
10
struct foo { int x; } b;
11
1 ? a : b;
12
}
13
14
struct bar { int x; } a;
15
16
void g(void)
17
{
18
struct bar { int x; } b;
19
1 ? a : b;
20
}
21