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
/
enum-alias-3.c
blob
322c8d82952cfc34bc63fccf6a25e6b56fa2f895
1
/* { dg-do run } */
2
/* { dg-require-effective-target lto } */
3
/* { dg-options "-O2 -flto" } */
4
5
typedef
int
*
A
;
6
7
void
*
foo
(
void
*
a
,
void
*
b
,
void
*
c
,
void
*
d
)
8
{
9
*(
A
**)
a
=
c
;
10
11
typedef
enum
E
*
B
;
12
enum
E
{
E1
= -
1
,
E2
=
0
,
E3
=
1
};
13
{
14
*(
B
**)
b
=
d
;
15
}
16
17
return
*(
A
**)
a
;
18
}
19
20
int
main
()
21
{
22
A
*
a
,
b
,
c
;
23
if
(&
c
!= (
A
*)
foo
(&
a
, &
a
, &
b
, &
c
))
24
__builtin_abort
();
25
}
26
27