Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / gen-attrs-33.C
blob485d349ecfcee6d01b362b3d5465bbab839de54a
1 // PR c++/35546
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-g" }
5 template <int N>
6 struct T
8   void foo [[gnu::format (printf,2,3)]] (char const * ...);     // { dg-warning "omission of ',' before varargs '...' is deprecated" "" { target c++26 } }
9 };
11 template struct T<3>;
13 template <typename T>
14 struct U
16   typedef T V [[gnu::mode (SI)]];
19 U<int>::V v;