blob: 0c1eb53ea07fbaa8166485fbe1d7d36415aeeae5 [file] [log] [blame]
Shih-wei Liaof8fd82b2010-02-10 11:10:31 -08001// RUN: %clang_cc1 -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};