2016-10-28 20:59:39 +08:00
|
|
|
// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only -cl-std=CL1.2
|
2019-03-19 21:04:17 +08:00
|
|
|
// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only -cl-std=c++
|
2016-02-02 19:29:43 +08:00
|
|
|
|
2016-02-12 20:07:04 +08:00
|
|
|
// 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);
|
|
|
|
}
|