Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/nontype7.C

raw
1 // PR c++/118632
2 // { dg-do compile { target c++11 } }
3
4 template<class T, T* = nullptr>
5 class Matrix {};
6
7 template<class T>
8 void operator*(Matrix<T>, int);
9
10 int main() {
11 Matrix<int> m;
12 m * 42;
13 }