1/* { dg-do compile } */
2/* { dg-options "-O1 -fnon-call-exceptions" }  */
3
4static inline const int &
5max (const int &a, const int &b)
6{
7  return a ? a : b;
8}
9
10static inline int
11baz ()
12{
13  return max (0, 0);
14}
15
16struct S
17{
18  ~S ()
19  {
20    baz ();
21  }
22};
23
24void bar ();
25void
26foo ()
27{
28  S s;
29  bar ();
30}
31
32