diff options
author | Josef Zlomek <zlomek@gcc.gnu.org> | 2002-12-20 13:15:14 +0000 |
---|---|---|
committer | Josef Zlomek <zlomek@gcc.gnu.org> | 2002-12-20 13:15:14 +0000 |
commit | 6d388066b6cc60121b3449722c8dd4bb63559fc2 (patch) | |
tree | 7da8eebd05b06f4323e47990f3219bcd821fe790 | |
parent | 1fec52beddde7a03a9f7c5769afcc88684e36677 (diff) | |
download | gcc-6d388066b6cc60121b3449722c8dd4bb63559fc2.zip gcc-6d388066b6cc60121b3449722c8dd4bb63559fc2.tar.gz gcc-6d388066b6cc60121b3449722c8dd4bb63559fc2.tar.bz2 |
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
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/20021220-1.c | 39 |
1 files changed, 39 insertions, 0 deletions
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 0000000..1cbbaea --- /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); + } +} + |