aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/pr92710.c
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2019-12-02 09:46:51 +0000
committerIain Sandoe <iain@sandoe.co.uk>2019-12-02 09:46:51 +0000
commit9d5bec7646fdc120087e39ba6ac01b5c299bf8aa (patch)
tree00f30fd30ba8b51d3af1a92679caff966f093489 /gcc/testsuite/gcc.dg/vect/pr92710.c
parentbf31886696cb7906760c6d7d24fab82d5bb646ba (diff)
parent02e688f0e850db35366a26a525e2876f93ffafd6 (diff)
c++-coroutines - merge trunk r278894.
2019-12-02 Iain Sandoe <iain@sandoe.co.uk> Merge trunk r278894. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/c++-coroutines@278895 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/vect/pr92710.c')
-rw-r--r--gcc/testsuite/gcc.dg/vect/pr92710.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/vect/pr92710.c b/gcc/testsuite/gcc.dg/vect/pr92710.c
new file mode 100644
index 00000000000..2986d4ce06a
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/vect/pr92710.c
@@ -0,0 +1,12 @@
+/* { dg-do compile } */
+/* { dg-additional-options "-fopenmp-simd" } */
+
+#pragma omp declare simd
+_Bool foo (_Bool) __attribute__((const));
+
+void
+f (_Bool *restrict x, char *restrict y, char *restrict z)
+{
+ for (int i = 0; i < 128; ++i)
+ x[i] = foo (y[i] == z[i]);
+}