summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/20040112-1.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-12 16:25:32 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-12 16:25:32 +0000
commitfc24c347b2eedbc2503cab87f07223cf808d577f (patch)
treea9a0225f19272c51410f4a8a62f3520acf4a9107 /gcc/testsuite/gcc.dg/20040112-1.c
parent5c836ef90d386886daed77743f1642bfe5aa053c (diff)
downloadgcc-fc24c347b2eedbc2503cab87f07223cf808d577f.tar.gz
PR opt/12826
* gcc.dg/20040112-1.c: New. * gcc.dg/dwarf-die[1-7].c: Move to... * gcc.dg/debug/dwarf2/dwarf-die[1-7].c: ... here. * gcc.dg/debug/dwarf2/dwarf2.exp: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75732 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/20040112-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/20040112-1.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/20040112-1.c b/gcc/testsuite/gcc.dg/20040112-1.c
new file mode 100644
index 00000000000..83996fe6c23
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/20040112-1.c
@@ -0,0 +1,15 @@
+/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
+/* { dg-options "-O2" } */
+/* { dg-final { scan-assembler "testb" } } */
+ftn (char *sp)
+{
+ char status;
+
+ while (1)
+ {
+ *sp = 0xE8;
+ status = *(volatile char *) sp;
+ if (status & 0x80)
+ break;
+ }
+}