OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.dg/] [other/] [conversion1.C] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
// PR C++/2213
2
// Origin: philippeb@corel.com
3
// Copyright (C), 2002 Free Software Foundation
4
// Contributed by Gabriel Dos Reis 
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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.