Commit 98b744de authored by Michael Beck's avatar Michael Beck
Browse files

test for a rather simply gcc optimization

[r22409]
parent fa9dada1
static void f1(void) {
printf("f1\n");
}
static void f2(void) {
printf("f2\n");
}
int test(char *x)
{
char ret = *x;
if (x)
f1();
else
f2();
return ret;
}
int main(int argc, char *argv[]) {
char x = '\0';
return test(&x);
}
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