From 6d388066b6cc60121b3449722c8dd4bb63559fc2 Mon Sep 17 00:00:00 2001 From: Josef Zlomek Date: Fri, 20 Dec 2002 13:15:14 +0000 Subject: [PATCH] Testcase for http://gcc.gnu.org/ml/gcc-patches/2002-12/msg01106.html "[PATCH]... Testcase for http://gcc.gnu.org/ml/gcc-patches/2002-12/msg01106.html "[PATCH] fix bug in jump.c which caused SEGFAULT in loop.c" From-SVN: r60365 --- .../gcc.c-torture/compile/20021220-1.c | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 gcc/testsuite/gcc.c-torture/compile/20021220-1.c 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 index 00000000000..1cbbaea3c10 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20021220-1.c @@ -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); + } +} + -- 2.30.2