summaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2000-03-14 16:10:27 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2000-03-14 16:10:27 +0000
commit7ec765ee8a7b4f3c575fce0a836269b6a6ba8ce3 (patch)
treec41a7a5a6b85a8bd26b4dac420e6d7b3f7f12e5a /gcc/testsuite
parentc52c41993bc36a0b5b9ead850d068789c6e5e545 (diff)
downloadgcc-7ec765ee8a7b4f3c575fce0a836269b6a6ba8ce3.tar.gz
* gcc.c-torture/execute/2000314-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32530 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20000314-1.c17
2 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index b83b56da0bf..7cf9211595c 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,6 @@
Tue Mar 14 08:58:37 2000 Jeffrey A Law (law@cygnus.com)
+ * gcc.c-torture/execute/2000314-1.c: New test.
* gcc.c-torture/compile/2000314-1.c: New test.
2000-03-13 Nathan Sidwell <nathan@codesourcery.com>
diff --git a/gcc/testsuite/gcc.c-torture/execute/20000314-1.c b/gcc/testsuite/gcc.c-torture/execute/20000314-1.c
new file mode 100644
index 00000000000..09de0949389
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/execute/20000314-1.c
@@ -0,0 +1,17 @@
+int main ()
+{
+ long winds = 0;
+
+ while (winds != 0)
+ {
+ if (*(char *) winds)
+ break;
+ }
+
+ if (winds == 0 || winds != 0 || *(char *) winds)
+ exit (0);
+
+ abort ();
+}
+
+