summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/torture/pr43879-1_0.C
blob: 710f6adfed9feb9765cd7ccc7061726509f317ba (plain)
1
2
3
4
5
6
7
8
9
10
11
struct A {
    int *i;
    A();
    ~A();
};

static int x = 0;

A::A() : i(&x) {}
A::~A() {}