summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/opt/dtor4.h
blob: d3b43beabd7f24969276ed190557a48d6a490472 (plain)
1
2
3
4
5
6
7
8
#include <cassert>

struct S
{
  int a, i;
  S () : i(1) {}
  __attribute__((noinline)) ~S () { assert (i == 1); }
};