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
* gcc.c-torture/execute/ieee/rbug.x: XFAIL FreeBSD 5.x.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20000603-1.c
1
struct s1 { double d; };
2
struct s2 { double d; };
3
4
double f(struct s1 *a, struct s2 *b)
5
{
6
a->d = 1.0;
7
return b->d + 1.0;
8
}
9
10
int main()
11
{
12
struct s1 a;
13
a.d = 0.0;
14
if (f (&a, (struct s2 *)&a) != 2.0)
15
abort ();
16
return 0;
17
}