builtin.cl 378 B

123456789101112131415
  1. // RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only -cl-std=CL1.2
  2. // RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only -cl-std=clc++
  3. // expected-no-diagnostics
  4. float __attribute__((overloadable)) acos(float);
  5. typedef float float4 __attribute__((ext_vector_type(4)));
  6. int printf(__constant const char* st, ...);
  7. void test(void)
  8. {
  9. float4 a;
  10. printf("%8.4v4hlf\n", a);
  11. }