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/testsuite:
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20010119-1.c
1
#ifdef __OPTIMIZE__
2
extern void undef (void);
3
4
void bar (unsigned x) { }
5
void baz (unsigned x) { }
6
7
extern inline void foo (int a, int b)
8
{
9
int c = 0;
10
while (c++ < b)
11
(__builtin_constant_p (a) ? ((a) > 20000 ? undef () : bar (a)) : baz (a));
12
}
13
#else
14
void foo (int a, int b)
15
{
16
}
17
#endif
18
19
int main (void)
20
{
21
foo(10, 100);
22
exit (0);
23
}