aboutsummaryrefslogtreecommitdiff
path: root/test/Sema
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2010-09-20 22:41:17 +0000
committerNate Begeman <natebegeman@mac.com>2010-09-20 22:41:17 +0000
commit6155d73ad1668be5335b1a060f6c49c03d4dca05 (patch)
tree06c3cc14f70cac261dce9f550e0ced6b2a29dab7 /test/Sema
parentcee9ff16688bc6dd6571162c1860f4eae05d98f7 (diff)
Check in support for OpenCL conditional operator on vector types.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114371 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema')
-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; }