projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a5f1dea
)
extended and improved
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Thu, 20 Sep 2007 12:04:24 +0000
(12:04 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Thu, 20 Sep 2007 12:04:24 +0000
(12:04 +0000)
[r15900]
ir/be/test/fehler81.c
patch
|
blob
|
history
diff --git
a/ir/be/test/fehler81.c
b/ir/be/test/fehler81.c
index
e490d3a
..
b267ee8
100644
(file)
--- a/
ir/be/test/fehler81.c
+++ b/
ir/be/test/fehler81.c
@@
-1,11
+1,27
@@
-int main(int argc, char *aregv[]) {
- switch (argc) {
+/*$ -fno-inline */
+#include <stdio.h>
+
+void test1(int a) {
+ switch (a) {
case 1:
- goto
a
;
+ goto
label
;
default:
+ printf("default\n");
break;
-
a
:
- printf("
Here
\n");
+
label
:
+ printf("
case 1
\n");
}
+}
+
+void test2(int a) {
+ switch (a) case 1: printf("case 1\n");
+ printf("end\n");
+}
+
+int main() {
+ test1(1);
+ test1(2);
+ test2(1);
+ test2(2);
return 0;
}