repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge reload-branch up to revision 101000
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
dcast1.C
blob
830def8cbc9b06e9feb854681f37d51f9808e76d
1
// { dg-do assemble }
2
3
class C {
4
public:
5
virtual void f();
6
};
7
8
extern volatile C* cp;
9
extern volatile C& cr;
10
11
void f ()
12
{
13
dynamic_cast<void*>(cp); // { dg-error "" } cannot dynamic_cast
14
dynamic_cast<C&>(cr); // { dg-error "" } cannot dynamic_cast
15
}