Debian Codegraph @

gcc/testsuite/g++.dg/template/array37.C

raw
1 // PR c++/115358
2
3 template<class T>
4 struct A { static int STR[]; };
5
6 template<class T>
7 int A<T>::STR[] = {1,2,3};
8
9 void f(int(&)[3]);
10
11 template<class T>
12 void g() {
13 f(A<int>::STR); // { dg-bogus "int []" }
14 }