projects
/
libfirm
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
call optimize_cf() to delete dead-code that might arise after cond_eval
[libfirm]
/
ir
/
be
/
test
/
fehler081.c
1
/*$ -fno-inline */
2
#include <stdio.h>
3
4
void test1(int a) {
5
switch (a) {
6
case 1:
7
goto label;
8
default:
9
printf("default\n");
10
break;
11
label:
12
printf("case 1\n");
13
}
14
}
15
16
void test2(int a) {
17
switch (a) case 1: printf("case 1\n");
18
printf("end\n");
19
}
20
21
int main() {
22
test1(1);
23
test1(2);
24
test2(1);
25
test2(2);
26
return 0;
27
}