PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / opt / dtor1.C
blob0352676c5f7325aeca98ac49d70cfa5e20ec83cc
1 // { dg-do run }
2 // { dg-options "-O2" }
4 int i;
6 struct S {
7   S ();
8   S (const S&);
9   ~S ();
12 S::S () { ++i; }
13 S::S (const S&) { ++i; }
14 S::~S () { --i; }
16 inline void f (S) {
19 int main () {
20   {
21     S s;
22     f (s);
23   }
25   return i;