Commit fa7aa1fe by Jakub Jelinek Committed by Jakub Jelinek

* gcc.c-torture/execute/20010119-1.c: New test.

From-SVN: r39138
parent cb9e9d8d
2001-01-19 Jakub Jelinek <jakub@redhat.com>
* gcc.c-torture/execute/20010119-1.c: New test.
2001-01-19 Nathan Sidwell <nathan@codesourcery.com>
* g++.old-deja/g++.other/vbase5.C: New test.
......
#ifdef __OPTIMIZE__
extern void undef (void);
void bar (unsigned x) { }
void baz (unsigned x) { }
extern inline void foo (int a, int b)
{
int c = 0;
while (c++ < b)
(__builtin_constant_p (a) ? ((a) > 20000 ? undef () : bar (a)) : baz (a));
}
#else
void foo (int a, int b)
{
}
#endif
int main (void)
{
foo(10, 100);
exit (0);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment