PR c++/8888:
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.cp / ptype-flags.cc
CommitLineData
bd69fc68
TT
1/* Copyright 2012 Free Software Foundation, Inc.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 3 of the License, or
6 (at your option) any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12
13 You should have received a copy of the GNU General Public License
14 along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17template<typename S>
18class Simple
19{
20 S val;
21};
22
23template<typename T>
24class Base
25{
26};
27
28template<typename T>
29class Holder : public Base<T>
30{
31public:
32 Simple<T> t;
33 Simple<T*> tstar;
34
35 typedef Simple< Simple<T> > Z;
36
37 Z z;
38
39 double method(void) { return 23.0; }
40};
41
42Holder<int> value;
43
44int main()
45{
46 return 0;
47}
This page took 0.049672 seconds and 4 git commands to generate.