source: trunk/src/gcc/gcc/testsuite/g++.old-deja/g++.other/crash20.C@ 2

Last change on this file since 2 was 2, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 477 bytes
Line 
1// Build don't link:
2
3#include <typeinfo>
4
5struct GcspFlags
6{
7 enum Enum
8 {
9 OffYes,
10 OffNo,
11 Root
12 };
13
14 static char const* name(Enum flag);
15
16 template<Enum GCSP_FLAG>
17 struct btmFlag
18 {
19 static Enum const f=OffNo;
20 };
21
22};
23
24template<>
25struct
26GcspFlags::btmFlag<GcspFlags::OffYes>
27{
28 static GcspFlags::Enum const f=GcspFlags::OffYes;
29};
30
31int
32main ()
33{
34 GcspFlags::btmFlag<GcspFlags::OffYes> f;
35 const std::type_info& ti = typeid (f);
36 return 0;
37}
38
Note: See TracBrowser for help on using the repository browser.