20030110-1.c: New test.
authorJosef Zlomek <zlomekj@suse.cz>
Fri, 10 Jan 2003 13:54:08 +0000 (14:54 +0100)
committerJosef Zlomek <zlomek@gcc.gnu.org>
Fri, 10 Jan 2003 13:54:08 +0000 (13:54 +0000)
* gcc.c-torture/compile/20030110-1.c: New test.
Test for http://gcc.gnu.org/ml/gcc-patches/2003-01/msg00519.html

From-SVN: r61153

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

index e1c6e0287aec031c6977f40c678e178b87d6f4fb..f71130fe65c2fe0fc714c57f36b80329342edcb1 100644 (file)
@@ -1,3 +1,7 @@
+2003-01-10  Josef Zlomek  <zlomekj@suse.cz>
+
+       * gcc.c-torture/compile/20030110-1.c: New test.
+
 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
 
        Merge from pch-branch:
diff --git a/gcc/testsuite/gcc.c-torture/compile/20030110-1.c b/gcc/testsuite/gcc.c-torture/compile/20030110-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);
+    }
+}
+