summaryrefslogtreecommitdiff
path: root/clang/test/SemaOpenCL/cond.cl
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaOpenCL/cond.cl')
-rw-r--r--clang/test/SemaOpenCL/cond.cl5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/SemaOpenCL/cond.cl b/clang/test/SemaOpenCL/cond.cl
new file mode 100644
index 0000000..79dc82d
--- /dev/null
+++ b/clang/test/SemaOpenCL/cond.cl
@@ -0,0 +1,5 @@
+// RUN: %clang_cc1 %s -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; }