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
* config/sparc/driver-sparc.c (cpu_names): Add SPARC-T5 entry.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
pr71624.C
blob
951534ce875147ef0d40f9894f8334a7db14a484
1
/* PR71624 */
2
/* { dg-do compile { target { { i?86-*-* x86_64-*-* } && { ! x32 } } } } */
3
/* { dg-options "-fcheck-pointer-bounds -mmpx -O2" } */
4
5
class c1
6
{
7
public:
8
virtual int fn1 () const;
9
int fn2 (const int *) const;
10
};
11
12
class c2
13
{
14
int fn1 ();
15
c1 obj;
16
};
17
18
int
19
c1::fn1 () const
20
{
21
return 0;
22
}
23
24
int
25
c1::fn2 (const int *) const
26
{
27
return this->fn1 ();
28
}
29
30
int
31
c2::fn1 ()
32
{
33
return obj.fn2 (0);
34
}
35