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
2010-05-02 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr36373-8.c
1
/* { dg-do run } */
2
/* { dg-options "-fno-tree-sra" } */
3
4
extern void abort (void);
5
struct Foo {
6
int *p;
7
} x;
8
void __attribute__((noinline))
9
foo()
10
{
11
*x.p = 0;
12
}
13
int main()
14
{
15
int b;
16
struct Foo g;
17
b = 1;
18
g.p = &b;
19
x = g;
20
foo();
21
if (b != 0)
22
abort ();
23
return 0;
24
}