Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / ext / tmplattr1.C
blob111e3441fbc55b470196c3adcc75aac23c1e704b
1 // PR c++/24260
2 // { dg-do compile { target i?86-*-* x86_64-*-* } }
3 // { dg-require-effective-target ilp32 }
5 #define stdcall __attribute__((stdcall))
7 struct T {
8   template <class S>
9   static int stdcall func(int arg1, int arg2);
12 template <class S>
13 int stdcall T::func(int arg1, int arg2)
15   return arg1+arg2;
18 struct dummy {};
20 void xx()
22   int (stdcall *ptr2)(int,int) = &T::func<dummy>;