view gcc/testsuite/g++.dg/tree-ssa/pr93845.C @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
line wrap: on
line source

/* { dg-do compile } */
/* { dg-options "-O1" } */

struct g;
struct h {
  g *operator->();
};
class i {
  void *a;
  int b;

public:
  template <typename f> f j() { return *static_cast<f *>(this); }
};
struct k : i {};
struct l : k {};
struct m {
  i n();
  i o(l, l, int);
};
struct g {
  void m_fn4(k);
};
h a;
i b;
i m::n() {
  l c, d, e = o(d, c, 0).j<l>();
  a->m_fn4(e);
  return b;
}