* gcc.c-torture/execute/20030331-1.c: New test.
authorRichard Sandiford <rsandifo@redhat.com>
Mon, 31 Mar 2003 20:24:51 +0000 (20:24 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Mon, 31 Mar 2003 20:24:51 +0000 (20:24 +0000)
From-SVN: r65102

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

index d70d3355e893ef9bea05bd6e367b7d18ce50239f..f2aca8542e8ecfa38ea3c6aa155ebbba4bf9bec9 100644 (file)
@@ -1,3 +1,7 @@
+2003-03-31  Richard Sandiford  <rsandifo@redhat.com>
+
+       * gcc.c-torture/execute/20030331-1.c: New test.
+
 2003-03-31  Nathan Sidwell  <nathan@codesourcery.com>
 
        * lib/gcov.exp: Adjust call return testing strings.
diff --git a/gcc/testsuite/gcc.c-torture/execute/20030331-1.c b/gcc/testsuite/gcc.c-torture/execute/20030331-1.c
new file mode 100644 (file)
index 0000000..e5db36b
--- /dev/null
@@ -0,0 +1,13 @@
+/* From PR/9301.  Fixed by ebotcazou's patch for PR/9493.  */
+
+void bar (void);
+
+void foo (int a, int b, int c, int d, int e)
+{
+  if (a)
+    bar();
+  if (b && c)
+    ;
+  if (d && e)
+    ;
+}