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
/
pr69951.c
blob
be9a0272c998389e27bd767df0ef39c0d7f9b040
1
/* { dg-do run } */
2
/* { dg-require-alias "" } */
3
4
extern
void
abort
(
void
);
5
6
int
a
=
1
,
c
=
1
;
7
extern
int
b
__attribute__
((
alias
(
"a"
)));
8
extern
int
d
__attribute__
((
alias
(
"c"
)));
9
int
main
(
int
argc
)
10
{
11
int
*
p
, *
q
;
12
if
(
argc
>=
0
)
13
p
= &
c
,
q
= &
d
;
14
else
15
p
= &
b
,
q
= &
d
;
16
*
p
=
1
;
17
*
q
=
2
;
18
if
(*
p
==
1
)
19
abort
();
20
return
0
;
21
}