OSDN Git Service

2009-05-19 H.J. Lu <hongjiu.lu@intel.com>
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 May 2009 21:17:00 +0000 (21:17 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 May 2009 21:17:00 +0000 (21:17 +0000)
PR c/40172
* gcc.dg/pr40172.c: Renamed to ...
* gcc.dg/pr40172-1.c: This.

* gcc.dg/pr40172-2.c: New.
* gcc.dg/pr40172-3.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147719 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr40172-1.c [moved from gcc/testsuite/gcc.dg/pr40172.c with 100% similarity]
gcc/testsuite/gcc.dg/pr40172-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr40172-3.c [new file with mode: 0644]

index dab10df..d326755 100644 (file)
@@ -1,3 +1,12 @@
+2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR c/40172
+       * gcc.dg/pr40172.c: Renamed to ...
+       * gcc.dg/pr40172-1.c: This.
+
+       * gcc.dg/pr40172-2.c: New.
+       * gcc.dg/pr40172-3.c: Likewise.
+
 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
 
        PR c/40172
diff --git a/gcc/testsuite/gcc.dg/pr40172-2.c b/gcc/testsuite/gcc.dg/pr40172-2.c
new file mode 100644 (file)
index 0000000..17aabb8
--- /dev/null
@@ -0,0 +1,16 @@
+/* PR middle-end/40172 */
+/* { dg-do compile } */
+/* { dg-options "-Wall -W -Werror" } */
+
+extern int xxx;
+
+#define XXX xxx
+
+int
+test (void)
+{
+  if (!XXX && xxx)
+    return 4;
+  else
+    return 0;
+}
diff --git a/gcc/testsuite/gcc.dg/pr40172-3.c b/gcc/testsuite/gcc.dg/pr40172-3.c
new file mode 100644 (file)
index 0000000..ea74fce
--- /dev/null
@@ -0,0 +1,17 @@
+/* PR middle-end/40172 */
+/* { dg-do compile */
+/* { dg-xfail-if "" { "*-*-*" } { "*" } { "" } } */
+/* { dg-options "-Wall -W -Werror -Wlogical-op" } */
+
+extern int xxx;
+
+#define XXX xxx
+
+int
+test (void)
+{
+  if (!XXX && xxx)
+    return 4;
+  else
+    return 0;
+}