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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
cast7.C
blob
4f433f424a3c952f008cc8b3f7d5b6f69fede156
1
// { dg-do run }
2
// Test that we can add cv-quals in a static cast to a pointer-to-base type.
3
4
struct A { int i; };
5
struct B : public A {};
6
7
int main()
8
{
9
int B::* bp = &B::i;
10
const int A::* ap = static_cast<const int A::*>(bp);
11
return ap != bp;
12
}