PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / opt / local1.C
bloba63afc24f16d2c2af5f0461b8d876471926b81b1
1 // { dg-options "-O" }
3 struct Outer {
4   struct Inner { virtual bool f() = 0; };
5   void g(Inner &) const;
6 };
7  
8 inline void h(const Outer &o)
10   struct Local : public Outer::Inner {
11     virtual bool f() { return true; };
12   };
13   Local l;
14   o.g(l);
17 void f(Outer &req) {
18   h (req);