Commit c7310bd4 authored by Matthias Braun's avatar Matthias Braun
Browse files

test for CSE moving flags into different block

[r15832]
parent 875db5fb
/*$ -fno-inline $*/
#include <stdio.h>
int k;
int f(int a)
{
if(k < 20) {
rand();
return a < 5 ? 10 : 20;
} else {
return a < 5 ? 20 : 0;
}
}
int main(void)
{
k = 21;
printf("Res: %d should be 0\n", f(20));
return 0;
}
Supports Markdown
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