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
2011-10-19 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr39903-2.c
1
/* PR target/39903 */
2
/* { dg-do run } */
3
/* { dg-options "-Wno-psabi" } */
4
5
struct X {
6
float d;
7
float b[];
8
};
9
10
struct X __attribute__((noinline))
11
foo (float d)
12
{
13
struct X x;
14
x.d = d;
15
return x;
16
}
17
extern void abort (void);
18
int main()
19
{
20
struct X x = foo(3.0);
21
if (x.d != 3.0)
22
abort ();
23
return 0;
24
}