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
/
torture
/
pr71598-1.c
blob
4dd4052780d20289956fa6854f81ce2a46ada011
1
/* { dg-do run } */
2
/* { dg-prune-output "use of enum values across objects may fail" } */
3
/* { dg-additional-options "-fno-short-enums" } */
4
5
enum
e1
{
c1
};
6
7
__attribute__
((
noinline
,
noclone
))
8
int
f
(
enum
e1
*
p
,
unsigned
*
q
)
9
{
10
*
p
=
c1
;
11
*
q
=
2
;
12
return
*
p
;
13
}
14
15
int
main
()
16
{
17
unsigned
x
;
18
19
if
(
f
(&
x
, &
x
) !=
2
)
20
__builtin_abort
();
21
return
0
;
22
}