PR c++/85553
[official-gcc.git] / gcc / testsuite / g++.dg / ext / tmplattr1.C
blob16a32ce6b36ebbe8d2c33b804932b8b09178d75f
1 // PR c++/24260
2 // { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } }
4 #define stdcall __attribute__((stdcall))
6 struct T {
7   template <class S>
8   static int stdcall func(int arg1, int arg2);
9 };
11 template <class S>
12 int stdcall T::func(int arg1, int arg2)
14   return arg1+arg2;
17 struct dummy {};
19 void xx()
21   int (stdcall *ptr2)(int,int) = &T::func<dummy>;