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
/
new5.C
blob
fbb91e87f69ac2053cd667cec41336e5041f9653
1
// { dg-do run }
2
// Test that const-correctness is observed when using new.
3
4
struct A {
5
A() { }
6
int f () { return 1; }
7
int f () const { return 0; }
8
};
9
10
int main ()
11
{
12
return (new const A)->f ();
13
}