aboutsummaryrefslogtreecommitdiff
path: root/test/SemaOpenCL/builtin.cl
blob: c4d3a2399fe33eb0d4ec7528a6da09444e0e471e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only -cl-std=CL1.2

// expected-no-diagnostics

float __attribute__((overloadable)) acos(float);

typedef float float4 __attribute__((ext_vector_type(4)));
int printf(__constant const char* st, ...);

void test(void)
{
  float4 a;
  printf("%8.4v4hlf\n", a);
}