summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/test17793.d
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gdc.test/compilable/test17793.d')
-rw-r--r--gcc/testsuite/gdc.test/compilable/test17793.d13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.test/compilable/test17793.d b/gcc/testsuite/gdc.test/compilable/test17793.d
new file mode 100644
index 00000000000..43c992bce75
--- /dev/null
+++ b/gcc/testsuite/gdc.test/compilable/test17793.d
@@ -0,0 +1,13 @@
+// REQUIRED_ARGS: -mcpu=avx2
+import core.simd;
+
+static if (__traits(compiles, double4))
+{
+ double4 foo();
+ void test(double[4]);
+
+ void main()
+ {
+ test(foo().array);
+ }
+}