Test for PR 15289.
authorRichard Henderson <rth@gcc.gnu.org>
Wed, 1 Dec 2004 18:15:58 +0000 (10:15 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 1 Dec 2004 18:15:58 +0000 (10:15 -0800)
From-SVN: r91572

gcc/testsuite/gcc.c-torture/execute/20041201-1.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.c-torture/execute/20041201-1.c b/gcc/testsuite/gcc.c-torture/execute/20041201-1.c
new file mode 100644 (file)
index 0000000..ec588b2
--- /dev/null
@@ -0,0 +1,15 @@
+/* PR rtl-opt/15289 */
+
+typedef struct { _Complex char a; _Complex char b; } Scc2;
+
+Scc2 s = { 1+2i, 3+4i };
+
+int checkScc2 (Scc2 s)
+{
+  return s.a != 1+2i || s.b != 3+4i;
+}
+
+int main (void)
+{
+  return checkScc2 (s);
+}