view gcc/testsuite/g++.dg/torture/pr82823.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
line wrap: on
line source

// { dg-do compile }
// { dg-additional-options "-fstack-clash-protection" }
// { dg-require-effective-target supports_stack_clash_protection }


class a
{
public:
  ~a ();
  int b;
};
class c
{
public:
  a m_fn1 ();
};
class d
{
  int e ();
  c f;
};
int
d::e ()
{
  return f.m_fn1 ().b;
}