Daniel Dunbar | 8fbe78f | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Anders Carlsson | be96bc9 | 2009-08-25 14:12:34 +0000 | [diff] [blame] | 2 | struct S { |
Mike Stump | 11289f4 | 2009-09-09 15:08:12 +0000 | [diff] [blame] | 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 | }; |