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
/
pr114493-2.c
blob
1b4a5792dc9f704a445e4f039b4afe2b8e32551f
1
/* PR c/114493 */
2
/* { dg-do compile { target lto } } */
3
/* { dg-options "-O2 -flto -std=c23" } */
4
5
void
foo
(
void
);
6
struct
S
;
7
struct
S
bar
(
struct
S
**);
8
struct
S
qux
(
const struct
S
**);
9
10
void
11
corge
(
void
)
12
{
13
struct
S
{
int
s
; }
s
;
14
s
.
s
=
0
;
15
}
16
17
struct
__attribute__
((
__may_alias__
))
S
{
18
int
s
;
19
};
20
21
struct
S
22
baz
(
void
)
23
{
24
foo
();
25
return
(
struct
S
) {};
26
}