OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2007-07-06 Daniel Berlin <dberlin@dberlin.org>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
alias-13.c
1
/* { dg-do link } */
2
/* { dg-options "-O2" } */
3
4
5
struct a
6
{
7
char a1;
8
};
9
10
int *aa;
11
12
void g(int *a)
13
{
14
aa = a;
15
*a = 2;
16
}
17
18
int t(int i, struct a *b)
19
{
20
g(&i);
21
b->a1 = 1;
22
i = 2;
23
if (b->a1 != 1)
24
link_failure ();
25
}
26
int main(void)
27
{
28
struct a b;
29
t(1, &b);
30
return 0;
31
}
32
33