PR middle-end/77674
[official-gcc.git] / gcc / testsuite / g++.dg / pr45310.C
blob335c782570f4972af95a680a341fa584af05fe30
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fnon-call-exceptions" }  */
4 static inline const int &
5 max (const int &a, const int &b)
7   return a ? a : b;
10 static inline int
11 baz ()
13   return max (0, 0);
16 struct S
18   ~S ()
19   {
20     baz ();
21   }
24 void bar ();
25 void
26 foo ()
28   S s;
29   bar ();