blob: 2011a71b48111777f899f4d03191eb79ebd9a77e [file] [log] [blame]
Hans Wennborg5294c792011-12-28 13:10:50 +00001// RUN: %clang_cc1 -fsyntax-only -verify -pedantic %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 // TODO: Warn that the 'a' length modifier is an extension.
10 scanf("%as", sp);
11
12 // TODO: Warn that the 'a' conversion specifier is a C++11 feature.
13 printf("%a", 1.0);
14 scanf("%afoobar", fp);
15}