aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/torture/pr57190.C
blob: 9fa11cd26ba80032d33a04274b6600c899a6df32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// { dg-do compile }

namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) {
    template<typename _Tp>     class new_allocator     {
    };
}
namespace std {
    template<typename>     class allocator;
    template<class _CharT>     struct char_traits;
    template<typename _CharT, typename _Traits = char_traits<_CharT>,            typename _Alloc = allocator<_CharT> >     class basic_string;
    typedef basic_string<char> string;
    template<typename _Tp>     class allocator: public __gnu_cxx::new_allocator<_Tp>     {
    };
    template<typename _CharT, typename _Traits, typename _Alloc>     class basic_string     {
    public:
	basic_string(const _CharT* __s, const _Alloc& __a = _Alloc());
    };
}
class UIException {
};
class PasswordDialog {
    void run() throw (UIException);
};
class MessageBox  {
public:
    MessageBox (std::string t) throw (UIException);
    virtual int run() throw (UIException) ;
};
extern "C" {
    struct __jmp_buf_tag   {
    };
    extern int __sigsetjmp (struct __jmp_buf_tag __env[1], int __savemask) throw ();
    typedef struct __jmp_buf_tag sigjmp_buf[1];
}
sigjmp_buf password_dialog_sig_jmp_buf;
void PasswordDialog::run() throw (UIException)
{
  __sigsetjmp (password_dialog_sig_jmp_buf, 1);
  MessageBox* errmsg = __null;
  errmsg = new MessageBox ("E R R O R");
  errmsg->run();
}