summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/volatile2.C
blob: 036d5f162d6e73f67bf9c5d95bcc669ef1d2f61a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/47003

struct A
{
  A(int);
};

volatile int i;

int main()
{
  A *q = new A (i);
}