Fix typo in test case
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / crash20.C
blobbf4370aad1d618b4d0d945a4a6e37effebadc16d
1 // Build don't link:
3 #include <typeinfo>
5 struct GcspFlags
7   enum Enum
8   { 
9     OffYes, 
10     OffNo, 
11     Root
12   };
14   static char const* name(Enum flag);
16   template<Enum GCSP_FLAG>
17   struct btmFlag
18   { 
19     static Enum const f=OffNo;
20   };
24 template<>
25 struct 
26 GcspFlags::btmFlag<GcspFlags::OffYes>
27
28   static GcspFlags::Enum const f=GcspFlags::OffYes;
31 int
32 main ()
34   GcspFlags::btmFlag<GcspFlags::OffYes> f;
35   const std::type_info& ti = typeid (f);
36   return 0;