]>
Commit | Line | Data |
---|---|---|
5a6bdb0d | 1 | // PR c++/51313 |
4b2e63de | 2 | // { dg-do compile { target c++11 } } |
5a6bdb0d PC |
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 | ||
15 | int main() | |
16 | { | |
5916cfd0 | 17 | cout << isdigit(0); // { dg-error "invalid conversion" } |
5a6bdb0d | 18 | } |