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.dg/cpp/spacing1.c: Update.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
20001108-1.c
1
/* { dg-do run } */
2
/* { dg-options "-O2 -fomit-frame-pointer" } */
3
4
void die (long) __attribute__ ((noreturn));
5
6
void die (long e)
7
{
8
abort ();
9
for (;;);
10
}
11
12
long foo (double i)
13
{
14
if (i != 2.0)
15
abort ();
16
return 26;
17
}
18
19
long bar (long i, double x)
20
{
21
if (x < 0) die (1);
22
return foo (x);
23
}
24
25
main()
26
{
27
if (bar (0, 2.0) != 26)
28
abort ();
29
exit (0);
30
}