Debian Codegraph @

gcc/testsuite/g++.dg/vect/pr97347.cc

raw
1 // { dg-do compile }
2 // { dg-require-effective-target c++11 }
3
4 inline namespace __cxx11 {}
5 typedef int size_t;
6 class MessageAuthenticationCode;
7 class __uniq_ptr_impl {
8 struct _Ptr {
9 using type = MessageAuthenticationCode *;
10 };
11 public:
12 using pointer = _Ptr::type;
13 };
14 class unique_ptr {
15 public:
16 using pointer = __uniq_ptr_impl::pointer;
17 unique_ptr(pointer);
18 };
19 namespace __cxx11 {
20 class basic_string {
21 public:
22 basic_string(char *);
23 ~basic_string();
24 };
25 } // namespace __cxx11
26 class MessageAuthenticationCode {};
27 class SCAN_Name {
28 public:
29 SCAN_Name(basic_string);
30 size_t arg_as_integer();
31 };
32 class SipHash : public MessageAuthenticationCode {
33 public:
34 SipHash(size_t c, size_t d) : m_C(c), m_D(d) {}
35 size_t m_C, m_D;
36 };
37 void create(basic_string algo_spec, char *s) {
38 basic_string provider = s;
39 SCAN_Name req(algo_spec);
40 unique_ptr(new SipHash(req.arg_as_integer(), req.arg_as_integer()));
41 }