Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/other/conversion1.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // PR C++/2213 |
2 // Origin: philippeb@corel.com | |
3 // Copyright (C), 2002 Free Software Foundation | |
4 // Contributed by Gabriel Dos Reis <gdr@integrable-solutions.net> | |
5 | |
6 // { dg-do compile } | |
7 | |
8 class QObject | |
9 { | |
10 }; | |
11 | |
12 int main() | |
13 { | |
14 long long m; | |
15 | |
145 | 16 (void (QObject::*)()) m; // { dg-error "3:invalid cast" } |
111 | 17 } |