summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/compat/union-m128-1_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/compat/union-m128-1_main.c')
-rw-r--r--gcc/testsuite/gcc.dg/compat/union-m128-1_main.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/compat/union-m128-1_main.c b/gcc/testsuite/gcc.dg/compat/union-m128-1_main.c
new file mode 100644
index 000000000..59e68d96c
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/compat/union-m128-1_main.c
@@ -0,0 +1,15 @@
+/* { dg-skip-if "test SSE2 support" { ! { i?86-*-* x86_64-*-* } } } */
+/* { dg-options "-O" } */
+/* { dg-require-effective-target sse2_runtime } */
+
+/* Test function argument passing. PR target/15301. */
+
+extern void union_m128_1_x (void);
+extern void exit (int);
+
+int
+main ()
+{
+ union_m128_1_x ();
+ exit (0);
+}