URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr34099-2.c] - Rev 323
Go to most recent revision | Compare with Previous | Blame | View Log
int test1 (int b, int c) { char x; if (b) return x / c; else return 1; } int test2 (int b, int c) { int x; if (b) return x * c; else return 1; } int test3 (int b, int c) { int x; if (b) return x % c; else return 1; } int test4 (int b, int c) { char x; if (b) return x == c; else return 1; } extern void abort (void); int main() { if (test1(1, 1000) != 0) abort (); if (test2(1, 0) != 0) abort (); if (test3(1, 1) != 0) abort (); if (test4(1, 1000) != 0) abort (); return 0; }
Go to most recent revision | Compare with Previous | Blame | View Log