repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Sync usage with man page.
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
conversion
/
to-virtual-base-1.C
blob
3fa8e418e87917f5bc997666935b63fc17ce63c7
1
// Copyright (C) 2002 Free Software Foundation
2
// Contributed by Gabriel Dos Reis <gdr@integrable-solutions.net>
3
4
struct A {
5
virtual void f(const A* a) = 0;
6
};
7
8
struct B : virtual A {
9
virtual void f(const A* a);
10
};
11
12
void B::f(const A* a)
13
{
14
static_cast<const B&>(*a); // { dg-error "" }
15
}