Shih-wei Liao | f8fd82b | 2010-02-10 11:10:31 -0800 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -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}} |