The library functions defined in the C99 standard headers are not available (OpenCL v1.2 s6.9.f). This change stops treating OpenCL builtin functions as standard C lib functions to eliminate warning messages about printf format string. Patch by Liu Yaxun (Sam)! Differential Revision: http://reviews.llvm.org/D16812 llvm-svn: 260671
15 lines
296 B
Common Lisp
15 lines
296 B
Common Lisp
// 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);
|
|
}
|