aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@issan.informatik.uni-dortmund.de>1998-10-22 15:03:45 +0000
committerJeff Law <law@gcc.gnu.org>1998-10-22 09:03:45 -0600
commitdb1b5e8135ad094bb6a8a7f78d857272603dec49 (patch)
treeaeee56a71e11facbfd8d1641cd479ae2b01492ba /gcc
parentf09bbbedfb1ad34a0277b9866ecb33a0ad198730 (diff)
downloadgcc-db1b5e8135ad094bb6a8a7f78d857272603dec49.zip
gcc-db1b5e8135ad094bb6a8a7f78d857272603dec49.tar.gz
gcc-db1b5e8135ad094bb6a8a7f78d857272603dec49.tar.bz2
* compile/981022-1.c, compile/981022-1.x: New test and driver.
From-SVN: r23225
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/981022-1.c9
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/981022-1.x2
3 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 539ef3f..f93acda 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
index 0000000..6256673
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/981022-1.c
@@ -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
index 0000000..f41cdc2
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/981022-1.x
@@ -0,0 +1,2 @@
+set torture_compile_xfail "*-*-*"
+return 0