blob: 61bdbe188def53118cad77e2ff024b425b72309c [file] [log] [blame]
Hans Wennborg5294c792011-12-28 13:10:50 +00001// RUN: %clang_cc1 -fsyntax-only -verify -pedantic -std=c++11 %s
2
3extern "C" {
4extern int scanf(const char *restrict, ...);
5extern int printf(const char *restrict, ...);
6}
7
8void f(char **sp, float *fp) {
9 scanf("%as", sp); // expected-warning{{conversion specifies type 'float *' but the argument has type 'char **'}}
10
11 printf("%a", 1.0);
12 scanf("%afoobar", fp);
13}