From: Andreas Schwab Date: Thu, 22 Oct 1998 15:03:45 +0000 (+0000) Subject: * compile/981022-1.c, compile/981022-1.x: New test and driver. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=db1b5e8135ad094bb6a8a7f78d857272603dec49;p=gcc.git * compile/981022-1.c, compile/981022-1.x: New test and driver. From-SVN: r23225 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 539ef3f7ef9..f93acdae09a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +Thu Oct 22 16:01:44 1998 Andreas Schwab + + * 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 00000000000..6256673804a --- /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 00000000000..f41cdc29913 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/981022-1.x @@ -0,0 +1,2 @@ +set torture_compile_xfail "*-*-*" +return 0