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
/
20090618-1.c
blob
8b601d62c79d2ccbf815077405e5b5bb43b494b8
1
/* { dg-do run } */
2
/* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */
3
4
extern
void
abort
(
void
);
5
6
struct
X
{
int
*
p
;
int
*
q
; };
7
8
int
foo
(
void
)
9
{
10
int
i
=
0
,
j
=
1
;
11
struct
X x
,
y
;
12
int
**
p
;
13
y
.
p
= &
i
;
14
x
.
q
= &
j
;
15
p
=
__builtin_mempcpy
(&
x
, &
y
,
sizeof
(
int
*));
16
return
**
p
;
17
}
18
19
int
main
()
20
{
21
if
(
foo
() !=
1
)
22
abort
();
23
return
0
;
24
}