aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/torture/pr82823.C
blob: dab369e7ad3716d97e54839b41d0e7ea7a353240 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// { 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;
}