diff options
Diffstat (limited to 'test/SemaOpenCL/builtin.cl')
-rw-r--r-- | test/SemaOpenCL/builtin.cl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/SemaOpenCL/builtin.cl b/test/SemaOpenCL/builtin.cl new file mode 100644 index 000000000000..d48a0c449591 --- /dev/null +++ b/test/SemaOpenCL/builtin.cl @@ -0,0 +1,14 @@ +// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only + +// 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); +} |