2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git] / gcc / testsuite / g++.dg / vect / pr45470-b.cc
blob279a1899cff0ca3e0bd153d189def9152a7740fb
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -ftree-vectorize -fno-vect-cost-model -fnon-call-exceptions" } */
4 template < typename _Tp > struct new_allocator
6 typedef _Tp * pointer;
7 template < typename > struct rebind
9 typedef new_allocator other;
14 template < typename _Tp > struct allocator:public new_allocator < _Tp >
15 {};
17 template < typename _Tp, typename _Alloc > struct _Vector_base
19 typedef typename _Alloc::template rebind < _Tp >::other _Tp_alloc_type;
20 struct
22 typename _Tp_alloc_type::pointer _M_start;
23 typename _Tp_alloc_type::pointer _M_finish;
24 typename _Tp_alloc_type::pointer _M_end_of_storage;
29 template
31 typename
32 _Tp,
33 typename
34 _Alloc = allocator < _Tp > >struct vector:_Vector_base < _Tp, _Alloc >
36 typedef _Vector_base < _Tp, _Alloc > _Base;
37 vector ():_Base ()
39 ~vector ();
42 struct LoadGraph
44 LoadGraph (int);
45 vector < struct _GdkColor >colors;
46 vector < float >data_block;
49 LoadGraph::LoadGraph (int)
52 /* { dg-final { cleanup-tree-dump "vect" } } */