mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-06-12 13:29:29 +00:00
24 lines
342 B
C
24 lines
342 B
C
#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);
|
|
}
|