diff options
author | Nate Begeman <natebegeman@mac.com> | 2010-09-20 22:41:17 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2010-09-20 22:41:17 +0000 |
commit | 6155d73ad1668be5335b1a060f6c49c03d4dca05 (patch) | |
tree | 06c3cc14f70cac261dce9f550e0ced6b2a29dab7 /test/Sema | |
parent | cee9ff16688bc6dd6571162c1860f4eae05d98f7 (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.c | 5 |
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; } |