1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-optimized" } */
7 int get() { return static_cast<T*>(this)->get2(); }
9 struct Foo : public Bar<Foo>
11 int get2() { return x; }
20 /* { dg-final { scan-tree-dump "return f->x;" "optimized" } } */
21 /* { dg-final { cleanup-tree-dump "optimized" } } */