ipa-cp: Perform operations in the appropriate types (PR 118097)
[gcc.git] / gcc / testsuite / g++.dg / template / fn-ptr4.C
blob36551ec5d7fa629345d6a4e6eaf40082351d81c1
1 // { dg-do compile }
3 template<void (*P)()>
4 void wrap() {
5   P(); // OK, despite A::g not being accessible from here.
8 struct A {
9   static void f() {
10     wrap<A::g>();
11   }
12 private:
13   static void g();