From: Joseph Myers Date: Sun, 25 Mar 2001 19:27:29 +0000 (+0100) Subject: * gcc.c-torture/execute/20010325-1.c: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eb40d6b94a706837f4fa87106b60fb1aa2aaa4f4;p=gcc.git * gcc.c-torture/execute/20010325-1.c: New test. From-SVN: r40831 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4e61c615d26..d8d9633990e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2001-03-25 Joseph S. Myers + + * gcc.c-torture/execute/20010325-1.c: New test. + 2001-03-23 Jakub Jelinek * g++.old-deja/g++.other/mangle3.C: New test. diff --git a/gcc/testsuite/gcc.c-torture/execute/20010325-1.c b/gcc/testsuite/gcc.c-torture/execute/20010325-1.c new file mode 100644 index 00000000000..100679fa184 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/20010325-1.c @@ -0,0 +1,15 @@ +/* Origin: Joseph Myers . + + This tests for inconsistency in whether wide STRING_CSTs use the host + or the target endianness. */ + +extern void exit (int); +extern void abort (void); + +int +main (void) +{ + if (L"a" "b"[1] != L'b') + abort (); + exit (0); +}