1 /* This testcase is part of GDB, the GNU debugger.
3 Copyright 2010-2015 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/>. */
21 class1 (int _x
) : x (_x
) {}
25 class1
class1_obj (42);
26 const class1
const_class1_obj (42);
27 volatile class1
volatile_class1_obj (42);
28 const volatile class1
const_volatile_class1_obj (42);
30 typedef class1 typedef_class1
;
32 typedef_class1
typedef_class1_obj (42);
34 class1
& class1_ref_obj (class1_obj
);
36 typedef const typedef_class1 typedef_const_typedef_class1
;
38 typedef_const_typedef_class1
typedef_const_typedef_class1_obj (42);
40 typedef typedef_const_typedef_class1
& typedef_const_typedef_class1_ref
;
42 typedef_const_typedef_class1_ref
typedef_const_typedef_class1_ref_obj (typedef_const_typedef_class1_obj
);
44 class subclass1
: public class1
47 subclass1 (int _x
, int _y
) : class1 (_x
), y (_y
) {}
51 subclass1
subclass1_obj (42, 43);
53 enum enum1
{ A
, B
, C
};
83 struct A a
= {1,20,3,40};