xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/2006-03-06-C++RecurseCrash.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm %s -o -
2*f4a2713aSLionel Sambuc namespace std {
3*f4a2713aSLionel Sambuc   class exception { };
4*f4a2713aSLionel Sambuc 
5*f4a2713aSLionel Sambuc   class type_info {
6*f4a2713aSLionel Sambuc   public:
7*f4a2713aSLionel Sambuc     virtual ~type_info();
8*f4a2713aSLionel Sambuc   };
9*f4a2713aSLionel Sambuc 
10*f4a2713aSLionel Sambuc }
11*f4a2713aSLionel Sambuc 
12*f4a2713aSLionel Sambuc namespace __cxxabiv1 {
13*f4a2713aSLionel Sambuc   class __si_class_type_info : public std::type_info {
14*f4a2713aSLionel Sambuc     ~__si_class_type_info();
15*f4a2713aSLionel Sambuc   };
16*f4a2713aSLionel Sambuc }
17*f4a2713aSLionel Sambuc 
18*f4a2713aSLionel Sambuc class recursive_init: public std::exception {
19*f4a2713aSLionel Sambuc public:
20*f4a2713aSLionel Sambuc   virtual ~recursive_init() throw ();
21*f4a2713aSLionel Sambuc };
22*f4a2713aSLionel Sambuc 
~recursive_init()23*f4a2713aSLionel Sambuc recursive_init::~recursive_init() throw() { }
24