summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/initlist20.C
blob: fcdb73f190c6e8f49213ef5ee85353a0a5b4ecd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR c++/40689
// { dg-options "-std=c++0x" }

class X
{
 public:
  X(): data {1,2,3,4,5} {}
 private:
  const short data[5];
};

int main()
{
  const float * pData = new const float[4] { 1.5, 2.5, 3.5, 4.5 };

  return 0;
}