Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/other/conversion1.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
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 | |
16 (void (QObject::*)()) m; // { dg-error "invalid cast" } | |
17 } |