Testcase for http://gcc.gnu.org/ml/gcc-patches/2003-02/msg01017.html
* gcc.dg/
20030213-1.c: New test.
From-SVN: r62869
+2003-02-13 Josef Zlomek <zlomekj@suse.cz>
+
+ * gcc.dg/20030213-1.c: New test.
+
2003-02-12 Roger Sayle <roger@eyesopen.com>
* gcc.dg/i386-387-1.c: Add new test for __builtin_atan2.
--- /dev/null
+/* Testcase for http://gcc.gnu.org/ml/gcc-patches/2003-02/msg01017.html */
+/* { dg-do link { target *-*-* } } */
+/* { dg-options "-O -fpic" } */
+
+int *g;
+
+int main (void)
+{
+ switch (*g)
+ {
+ case 0:
+ {
+ switch (*g)
+ {
+ case 0: *g = 1; break;
+ case 1:
+ case 2: *g = 1; break;
+ case 3:
+ case 4: *g = 1; break;
+ }
+ break;
+ }
+ case 1:
+ {
+ switch (*g)
+ {
+ case 0: *g = 1; break;
+ case 1:
+ case 2: *g = 1; break;
+ case 3:
+ case 4: *g = 1; break;
+ }
+ }
+ }
+ return 0;
+}