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
/
tc1
/
dr137.C
blob
bc1beb021bbb93a82e8c691559b15359218b8755
1
// { dg-do compile }
2
// Origin: Giovanni Bajo <giovannibajo at gcc dot gnu dot org>
3
// DR137: static_cast of cv void*
4
5
struct A;
6
7
const void* v;
8
9
void foo(void)
10
{
11
(void)static_cast<const volatile A *>(v);
12
(void)static_cast<A *>(v); // { dg-error "" "static_cast cannot remove cv qualifiers" }
13
}