Chandler Carruth | b15be0d | 2010-08-05 03:16:33 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Andy Gibbs | 8e8fb3b | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 2 | // expected-no-diagnostics |
Chandler Carruth | b15be0d | 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 |