URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [reassoc-1.c] - Rev 298
Compare with Previous | Blame | View Log
/* { dg-do run } */ int x; int __attribute__((noinline)) foo(int a, int b, int w) { int tmp1 = a * w; int tmp2 = b * w; x = tmp1; return tmp1 + tmp2; } extern void abort (void); int main() { if (foo(1, 2, 3) != 9) abort (); if (x != 3) abort (); return 0; }