| Chandler Carruth | a12b9de | 2010-08-05 03:16:33 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
| Andy Gibbs | c6e68da | 2012-10-19 12:44:48 +0000 | [diff] [blame^] | 2 | // expected-no-diagnostics |
| Chandler Carruth | a12b9de | 2010-08-05 03:16:33 +0000 | [diff] [blame] | 3 | |
| 4 | class c { | ||||
| 5 | virtual void f1(const char* a, ...) | ||||
| 6 | __attribute__ (( __format__(__printf__,2,3) )) = 0; | ||||
| 7 | virtual void f2(const char* a, ...) | ||||
| 8 | __attribute__ (( __format__(__printf__,2,3) )) {} | ||||
| 9 | }; | ||||
| 10 | |||||