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