blob: a21ebe1130663a62bddc37208dae15be0028743b [file] [log] [blame]
Sebastian Redl4a2614e2009-11-17 18:02:24 +00001// RUN: clang-cc -fsyntax-only -verify %s
2
3// PR5521
4struct A { void a(const char*,...) __attribute((format(printf,2,3))); };
5void b(A x) {
6 x.a("%d", 3);
7}
8struct X { void a(const char*,...) __attribute((format(printf,1,3))); }; // expected-error {{format argument not a string type}}