repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr112488-2.c
blob
b5e5fbd3f2bba26e3395f36eb2aef33a924419b8
1
/* { dg-do compile }
2
* { dg-options "-std=gnu23 -O1" } */
3
4
extern
void
abort
(
void
);
5
6
int
test
(
int
*
n
,
struct
T
{
char
a
[*
n
],
b
[*
n
]; }*) {
7
return sizeof
(
struct
T
) -
sizeof
(
struct
T
);
8
}
9
10
void
f1
(
int
*
p
) {
11
if
(
test
(
p
,
0
))
abort
();
12
}
13