PR c++/85765 - SFINAE and non-type default template arg.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / gen-attrs-36.C
blob3f0ef1461b24dec019974f67c83478ed266271bc
1 // PR c++/43031
2 // { dg-options "-pedantic" }
3 // { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } }
4 // { dg-require-effective-target c++11 }
6 // c++11 attributes that apply to types are ignored for now
8 class T;
9 class L { };
10 class P : public L
12   typedef void (T::* [[gnu::__stdcall__]] F2) (L*); // { dg-warning "ignored" }
13   typedef void (T::*F) (L*) [[gnu::__stdcall__]]; // { dg-warning "ignored" }
14   void f(bool aAdd);
17 class T
19 public:
20   virtual void  A(L *listener) [[gnu::__stdcall__]] = 0; // { dg-warning "ignored" }
21   virtual void R(L *listener)  [[gnu::__stdcall__]] = 0; // { dg-warning "ignored" }
23 void P::f(bool aAdd)
25   F addRemoveEventListener = (aAdd ? &T::A : &T::R);