* gcc.c-torture/compile/990801-2.c: New test.
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 Aug 1999 05:57:31 +0000 (05:57 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 Aug 1999 05:57:31 +0000 (05:57 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28390 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 34896dd..f497185 100644 (file)
@@ -1,5 +1,7 @@
 Sun Aug  1 22:29:34 1999  Jeffrey A Law  (law@cygnus.com)
 
+       * gcc.c-torture/compile/990801-2.c: New test.
+
        * gcc.c-torture/compile/990801-1.c: New test.
 
 Sun Jul 25 21:41:37 1999  Jeffrey A Law  (law@cygnus.com)
diff --git a/gcc/testsuite/gcc.c-torture/compile/990801-2.c b/gcc/testsuite/gcc.c-torture/compile/990801-2.c
new file mode 100644 (file)
index 0000000..0a575ea
--- /dev/null
@@ -0,0 +1,11 @@
+void f()
+{
+    extern char* p;
+    int ch;
+    while (!(ch = 0)) {
+        if ((ch == 0) || (ch == 2)) {
+            break;
+        }
+        *p = 0;
+    }
+}