Debian Codegraph @

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

raw
1 // PR c++/104622
2 // { dg-additional-options "-fpermissive" }
3
4 template<class T>
5 struct type_identity {
6 typedef T type;
7 };
8
9 template<class T> void f(typename type_identity<T>::type*, T, int*);
10
11 int main() {
12 const int p = 0;
13 f(&p, 0, 0); // { dg-warning "invalid conversion" }
14 }