Debian Codegraph @

gcc/testsuite/g++.dg/ext/tmplattr1.C

raw
1 // PR c++/24260
2 // { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } }
3
4 #define stdcall __attribute__((stdcall))
5
6 struct T {
7 template <class S>
8 static int stdcall func(int arg1, int arg2);
9 };
10
11 template <class S>
12 int stdcall T::func(int arg1, int arg2)
13 {
14 return arg1+arg2;
15 }
16
17 struct dummy {};
18
19 void xx()
20 {
21 int (stdcall *ptr2)(int,int) = &T::func<dummy>;
22 }
23