summaryrefslogtreecommitdiff
path: root/clang/test/SemaOpenCL/cond.cl
blob: 79dc82db190d90ecbd15f48b45a9a4767226259b (about) (plain)
1
2
3
4
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; }