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
/
pr94172-2.c
blob
bb7b060d7b26c67bc0ab8abbefb9a1c4f6376335
1
/* PR c/94172 */
2
/* { dg-do compile } */
3
/* { dg-options "-Os -g -fshort-enums" } */
4
5
extern
enum
E e
;
6
extern
void
bar
(
int
a
);
7
enum
E
{
F
};
8
9
void
10
foo
(
int
a
)
11
{
12
int
l
=
e
;
13
if
(
a
)
14
{
15
__asm
volatile
(
"nop"
);
16
l
=
0
;
17
}
18
bar
(
l
);
19
}