Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/cpp0x/pr51313.C @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 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 | |
15 int main() | |
16 { | |
17 cout << isdigit(0); // { dg-error "invalid conversion" } | |
18 } |