blob: d1659c98dee52f4246ebcdd9a2c96ab26bfc2922 [file] [log] [blame]
Anders Carlsson4fb77202009-08-25 14:12:34 +00001// RUN: clang-cc -fsyntax-only -verify %s
2struct S {
3 static void f(const char*, ...) __attribute__((format(printf, 1, 2)));
4
5 // GCC has a hidden 'this' argument in member functions which is why
6 // the format argument is argument 2 here.
7 void g(const char*, ...) __attribute__((format(printf, 2, 3)));
8};