1 /* This testcase is part of GDB, the GNU debugger.
3 Copyright 2003-2004, 2007-2012 Free Software Foundation, Inc.
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
20 typedef double value_type
;
21 struct Base
{ typedef int value_type
; };
22 struct Derived
: public Base
{
23 void doit (void) const {
34 typedef int value_type
;
83 class D
: private A
, public B
, protected C
{
99 class E
: public A
, B
, protected C
{
115 class F
: A
, public B
, C
{
130 class G
: private A
, public B
, protected C
{
155 typedef float value_type
;
177 class V_inter
: public virtual V_base
189 class V_derived
: public V_inter
197 A::value_type
A::afoo() {
201 A::value_type
B::bfoo() {
205 A::value_type
C::cfoo() {
209 D::value_type
D::dfoo() {
213 E::value_type
E::efoo() {
217 F::value_type
F::ffoo() {
225 A::value_type
A::foo()
231 A::value_type
B::foo()
237 A::value_type
C::foo()
243 D::value_type
D::foo()
249 E::value_type
E::foo()
255 F::value_type
F::foo()
286 marker1(); // marker1-returns-here
288 a_instance
.a
= 20; // marker1-returns-here
303 zz_instance
.zz
= 35.0;
306 N::Derived::value_type d
= 1;
307 N::value_type n
= 3.0;
This page took 0.053775 seconds and 4 git commands to generate.