OSDN Git Service

* gcc.c-torture/execute/20030331-1.c: New test.
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 31 Mar 2003 20:24:51 +0000 (20:24 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 31 Mar 2003 20:24:51 +0000 (20:24 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65102 138bc75d-0d04-0410-961f-82ee72b054a4

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

index d70d335..f2aca85 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)
+    ;
+}