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
2012-01-30 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
pr27799.c
1
/* { dg-do link } */
2
/* { dg-options "-O2" } */
3
4
struct X { double m; int x; };
5
struct Y { int y; short d; };
6
struct YY { int y; short d; char c; };
7
8
extern void link_error (void);
9
10
int foo(struct X *x, struct Y *y)
11
{
12
x->x = 0;
13
y->y = 1;
14
if (x->x != 0)
15
link_error ();
16
}
17
18
int foo_no(struct X *x, struct YY *y)
19
{
20
x->x = 0;
21
y->y = 1;
22
if (x->x != 0)
23
link_error ();
24
}
25
26
int main() {}