]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/g++.dg/template/error23.C
class.c (type_has_virtual_destructor): New.
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / template / error23.C
CommitLineData
7b5d1e27
MM
1// PR c++/29632
2
3struct nullptr_type {
4
5 nullptr_type ( void ) {}
6
7 template < typename T >
8 operator T* ( void ) const {
9 return ( 0 );
10 }
46408846 11} const nullptr_ob;
7b5d1e27
MM
12
13int main ( void ) {
46408846 14 0 == nullptr_ob; // { dg-error "match" }
7b5d1e27
MM
15}
16
17