- add testcase for switch on enum
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sun, 31 Aug 2008 10:11:04 +0000 (10:11 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sun, 31 Aug 2008 10:11:04 +0000 (10:11 +0000)
[r21574]

parsetest/should_warn/switch_on_enum.c [new file with mode: 0644]

diff --git a/parsetest/should_warn/switch_on_enum.c b/parsetest/should_warn/switch_on_enum.c
new file mode 100644 (file)
index 0000000..84449d1
--- /dev/null
@@ -0,0 +1,12 @@
+enum e {
+       a, b, c
+};
+
+enum e E;
+
+int main(int argc, char *argv[]) {
+       switch (E) {
+       case a: return 1;
+       }
+       return 0;
+}