aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/opencl-cond.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/opencl-cond.c')
-rw-r--r--test/Sema/opencl-cond.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Sema/opencl-cond.c b/test/Sema/opencl-cond.c
new file mode 100644
index 0000000000..d654a152c8
--- /dev/null
+++ b/test/Sema/opencl-cond.c
@@ -0,0 +1,5 @@
+// RUN: %clang_cc1 %s -x cl -verify -pedantic -fsyntax-only
+
+typedef __attribute__((ext_vector_type(4))) float float4;
+
+float4 foo(float4 a, float4 b, float4 c, float4 d) { return a < b ? c : d; }