summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/bracket1.C
blob: dfb5bf4ea401c69dff73340ae7e3120a748593fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do compile }
// { dg-options "-std=gnu++0x" }

template<typename T>
struct list {};

template<typename T>
struct vector { 
  operator T() const;
};

void f()
{
  vector<vector<int>> v;
  const vector<int> vi = static_cast<vector<int>>(v);
}