Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.c-torture/execute/pr40747.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* PR middle-end/40747 */ extern void abort (void); int foo (int i) { return (i < 4 && i >= 0) ? i : 4; } int main () { if (foo (-1) != 4) abort (); if (foo (0) != 0) abort (); if (foo (1) != 1) abort (); if (foo (2) != 2) abort (); if (foo (3) != 3) abort (); if (foo (4) != 4) abort (); if (foo (5) != 4) abort (); return 0; }