* compile/981022-1.c, compile/981022-1.x: New test and driver.
authorAndreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Thu, 22 Oct 1998 15:03:45 +0000 (15:03 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 22 Oct 1998 15:03:45 +0000 (09:03 -0600)
From-SVN: r23225

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

index 539ef3f7ef97fb043a0133be54238ad165b2a7a0..f93acdae09adfc620ce2a8b48efa3644351c91cf 100644 (file)
@@ -1,3 +1,7 @@
+Thu Oct 22 16:01:44 1998  Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
+
+       * compile/981022-1.c, compile/981022-1.x: New test and driver.
+
 Mon Oct 19 14:03:07 1998  Jeffrey A Law  (law@cygnus.com)
 
        * 981019-1.c: New test.
diff --git a/gcc/testsuite/gcc.c-torture/compile/981022-1.c b/gcc/testsuite/gcc.c-torture/compile/981022-1.c
new file mode 100644 (file)
index 0000000..6256673
--- /dev/null
@@ -0,0 +1,9 @@
+/* This tests a combination of two gcc extensions.  Omitting the middle
+   operand of ?: and using ?: as an lvalue.  */
+int x, y;
+
+int main ()
+{
+  (x ?: y) = 0;
+  return 0;
+}
diff --git a/gcc/testsuite/gcc.c-torture/compile/981022-1.x b/gcc/testsuite/gcc.c-torture/compile/981022-1.x
new file mode 100644 (file)
index 0000000..f41cdc2
--- /dev/null
@@ -0,0 +1,2 @@
+set torture_compile_xfail "*-*-*"
+return 0