Merged trunk at revision 161680 into branch.
[official-gcc.git] / gcc / testsuite / g++.dg / template / error23.C
blobf21d8d9d07c9954836ce6c83d59a25ecca79810b
1 // PR c++/29632
3 struct nullptr_type {
5   nullptr_type ( void ) {}
7   template < typename T >
8   operator T* ( void ) const {
9     return ( 0 );
10   }
11 } const nullptr_ob;
13 int main ( void ) {
14   0 == nullptr_ob; // { dg-error "match" }