]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* gcc.c-torture/compile/20021123-1.c: New test.
authorEric Botcazou <ebotcazou@libertysurf.fr>
Sat, 23 Nov 2002 08:10:22 +0000 (08:10 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sat, 23 Nov 2002 08:10:22 +0000 (08:10 +0000)
From-SVN: r59400

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

index 94c9dec40551face261704d7dd7b62ace4da007e..8009a95627b70c04c3a63c4ad8ce91afad1851ae 100644 (file)
@@ -1,3 +1,7 @@
+2002-11-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       * gcc.c-torture/compile/20021123-1.c: New test.
+
 2002-11-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        * gcc.dg/i386-unroll-1.c: New test.
diff --git a/gcc/testsuite/gcc.c-torture/compile/20021123-1.c b/gcc/testsuite/gcc.c-torture/compile/20021123-1.c
new file mode 100644 (file)
index 0000000..dd2aa7e
--- /dev/null
@@ -0,0 +1,10 @@
+/* PR c/8439 */
+/* Verify that GCC properly handles null increments. */
+
+struct empty {
+};
+
+void foo(struct empty *p)
+{
+   p++;
+}