Testcase for http://gcc.gnu.org/ml/gcc-patches/2002-12/msg01106.html
authorzlomek <zlomek@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Dec 2002 13:15:14 +0000 (13:15 +0000)
committerzlomek <zlomek@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Dec 2002 13:15:14 +0000 (13:15 +0000)
"[PATCH] fix bug in jump.c which caused SEGFAULT in loop.c"

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60365 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/gcc.c-torture/compile/20021220-1.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.c-torture/compile/20021220-1.c b/gcc/testsuite/gcc.c-torture/compile/20021220-1.c
new file mode 100644 (file)
index 0000000..1cbbaea
--- /dev/null
@@ -0,0 +1,39 @@
+extern char bpp;
+
+void foo()
+{
+  if (bpp == 32)
+    {
+      if (2 < 8)
+       {
+         do
+           {
+             while (inb(0x9ae8) & (0x0100 >> (2 +1)));
+           }
+         while(0);
+       }
+      else
+       {
+         do
+           {
+             while (inb(0x9ae8) & (0x0100 >> (2)));
+           }
+         while(0);
+       }
+    }
+  else
+    do
+      { 
+       while (inb(0x9ae8) & (0x0100 >> (1)));
+      }
+    while(0);
+  if (8 < 8)
+    {
+      do
+       {
+         while (inb(0x9ae8) & (0x0100 >> (8 +1)));
+       }
+      while(0);
+    }
+}
+