| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-std=c++11 -O2 -fno-guess-branch-probability -fno-inline-functions-called-once -fipa-cp-clone -fipa-pta -fnon-call-exceptions --param=ipa-cp-eval-threshold=0" } */ |
| 3 |
|
| 4 |
|
| 5 |
template <typename> class allocator { |
| 6 |
public: |
| 7 |
~allocator(); |
| 8 |
}; |
| 9 |
template <typename> struct allocator_traits; |
| 10 |
template <typename _Tp> struct allocator_traits<allocator<_Tp>> { |
| 11 |
using allocator_type = allocator<_Tp>; |
| 12 |
template <typename _Up> using rebind_alloc = allocator<_Up>; |
| 13 |
static void deallocate(allocator_type); |
| 14 |
}; |
| 15 |
template <typename _ForwardIterator, typename _Tp> |
| 16 |
void _Destroy(_ForwardIterator, _ForwardIterator, _Tp); |
| 17 |
struct __alloc_traits : allocator_traits<allocator<int>> { |
| 18 |
struct rebind { |
| 19 |
typedef rebind_alloc<int> other; |
| 20 |
}; |
| 21 |
}; |
| 22 |
struct _Vector_base { |
| 23 |
struct _Vector_impl_data { |
| 24 |
int _M_start; |
| 25 |
int _M_finish; |
| 26 |
}; |
| 27 |
struct _Vector_impl : __alloc_traits::rebind::other, _Vector_impl_data {}; |
| 28 |
__alloc_traits::rebind::other _M_get_Tp_allocator(); |
| 29 |
~_Vector_base() { _M_deallocate(); } |
| 30 |
_Vector_impl _M_impl; |
| 31 |
void _M_deallocate() { __alloc_traits::deallocate(_M_impl); } |
| 32 |
}; |
| 33 |
class vector : _Vector_base { |
| 34 |
public: |
| 35 |
vector() noexcept { |
| 36 |
allocator<int> __trans_tmp_1 = _M_get_Tp_allocator(); |
| 37 |
_Destroy(_M_impl._M_start, _M_impl._M_finish, __trans_tmp_1); |
| 38 |
} |
| 39 |
void size(); |
| 40 |
}; |
| 41 |
struct HTTPCallback { |
| 42 |
virtual void OnFailure(); |
| 43 |
}; |
| 44 |
struct ContentCallback { |
| 45 |
virtual void OnDownloadProgress(); |
| 46 |
}; |
| 47 |
class ClientNetworkContentSocketHandler : ContentCallback, HTTPCallback { |
| 48 |
vector requested; |
| 49 |
vector infos; |
| 50 |
vector lastActivity; |
| 51 |
void OnFailure(); |
| 52 |
public: |
| 53 |
int IDLE_TIMEOUT = 0; |
| 54 |
ClientNetworkContentSocketHandler(); |
| 55 |
void DownloadSelectedContent(); |
| 56 |
} _network_content_client; |
| 57 |
void ClientNetworkContentSocketHandler::DownloadSelectedContent() { |
| 58 |
vector content; |
| 59 |
content.size(); |
| 60 |
} |
| 61 |
void ClientNetworkContentSocketHandler::OnFailure() { |
| 62 |
DownloadSelectedContent(); |
| 63 |
} |
| 64 |
ClientNetworkContentSocketHandler::ClientNetworkContentSocketHandler() {} |