summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/array14.C
blob: 71a03f3bf30d9104df31f876faba3a8bf4342c03 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/23993

const int data[2][4] = {
  { 0, 1, 2, 3 }
};

template <typename T>
void t(int k) {
  int candidate = data[1][k];
}