// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only -cl-std=CL2.0 -finclude-default-header -fdeclare-opencl-builtins
// Make sure warnings are produced based on printf format strings.
kernel void format_string_warnings; // expected-warning {{format specifies type 'int' but the argument has type '__constant char *'}}
printf; // expected-warning {{more '%' conversions than data arguments}}
printf; // expected-warning {{data argument not used by format string}}
}
{
printf