* c-typeprint.c (find_typedef_for_canonicalize,
[external/binutils.git] / gdb / testsuite / gdb.cp / ptype-flags.cc
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
17 template<typename S>
18 class Simple
19 {
20   S val;
21 };
22
23 template<typename T>
24 class Base
25 {
26 };
27
28 template<typename T>
29 class Holder : public Base<T>
30 {
31 public:
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
42 Holder<int> value;
43
44 int main()
45 {
46   return 0;
47 }