1 // PR c++/51313
2 // { dg-do compile { target c++11 } }
3 
4 class ostream;
5 
6 extern "C" {
7   extern int isdigit (int);
8 }
9 
10 ostream&
11 operator<<(ostream&, const unsigned char*);
12 
13 extern ostream cout;
14 
main()15 int main()
16 {
17   cout << isdigit(0);  // { dg-error "invalid conversion" }
18 }
19