blob: 279a1899cff0ca3e0bd153d189def9152a7740fb (
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
43
44
45
46
47
48
49
50
51
52
|
/* { dg-do compile } */
/* { dg-options "-O1 -ftree-vectorize -fno-vect-cost-model -fnon-call-exceptions" } */
template < typename _Tp > struct new_allocator
{
typedef _Tp * pointer;
template < typename > struct rebind
{
typedef new_allocator other;
};
};
template < typename _Tp > struct allocator:public new_allocator < _Tp >
{};
template < typename _Tp, typename _Alloc > struct _Vector_base
{
typedef typename _Alloc::template rebind < _Tp >::other _Tp_alloc_type;
struct
{
typename _Tp_alloc_type::pointer _M_start;
typename _Tp_alloc_type::pointer _M_finish;
typename _Tp_alloc_type::pointer _M_end_of_storage;
};
};
template
<
typename
_Tp,
typename
_Alloc = allocator < _Tp > >struct vector:_Vector_base < _Tp, _Alloc >
{
typedef _Vector_base < _Tp, _Alloc > _Base;
vector ():_Base ()
{}
~vector ();
}
;
struct LoadGraph
{
LoadGraph (int);
vector < struct _GdkColor >colors;
vector < float >data_block;
};
LoadGraph::LoadGraph (int)
{}
/* { dg-final { cleanup-tree-dump "vect" } } */
|