LoongArch: Organize the code related to split move and merge the same functions.
[official-gcc.git] / gcc / testsuite / g++.dg / template / access25.C
blobe882a7099d98298e0bf38c5160ba7bac5fba008e
1 // PR c++/56359
3 typedef int (*InvocationCallback) (const int &);
5 template < typename target_t >
6 void SetPrototypeMethod (target_t, const char *, InvocationCallback);
8 class A
10     void Initialize ();
11 protected:
12     static int Stop (const int &);
13     void Stop ();  // comment out to make the bug disappear.
16 void
17 A::Initialize ()
19     SetPrototypeMethod (0, "stop", A::Stop);