blob: 31b50be3358981117601447a1aef5064fe28d5f5 [file] [log] [blame]
Douglas Gregor8419fa32009-05-30 06:31:56 +00001//-*- C++ -*-
2
3// Intended to exercise all syntactic parts of the C++ language that
4// aren't part of C.
5
6namespace std {
7 namespace debug {
8 }
9}
10
11using namespace std::debug;
12using namespace std;
Douglas Gregor6c9c9402009-05-30 06:48:27 +000013
14namespace safestl = ::std::debug;
Douglas Gregor59e63572009-05-30 06:58:37 +000015
16class Base1 {
17};
18
19class Base2 { };
20
21class Derived1 : Base1, virtual public Base2 { };
Peter Collingbournefb7b3632010-12-15 15:06:14 +000022
23/* Template classes, template functions */
24enum E1 { EC1 };
25template <E1 v> class C1 {};
26template <E1 v> C1<v> f1() { return C1<v>(); }
27void f2() { f1<EC1>(); }