[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / CodeGenCXX / 2007-09-10-RecursiveTypeResolution.cpp
blobec8a516c696b1057a4ce69b98b2f9c6670166dfc
1 // RUN: %clang_cc1 -emit-llvm %s -o -
2 // PR1634
4 namespace Manta
6 class CallbackHandle
8 protected:virtual ~ CallbackHandle (void)
12 template < typename Data1 > class CallbackBase_1Data:public CallbackHandle
17 namespace __gnu_cxx
19 template < typename _Iterator, typename _Container >
20 class __normal_iterator
22 _Iterator _M_current;
26 namespace std
28 template < typename _Tp > struct allocator
30 typedef _Tp *pointer;
32 template < typename _InputIterator,
33 typename _Tp > inline void find (_InputIterator __last,
34 const _Tp & __val)
39 namespace Manta
41 template < typename _Tp, typename _Alloc> struct _Vector_base
43 struct _Vector_impl
45 _Tp *_M_start;
47 public:
48 _Vector_impl _M_impl;
50 template < typename _Tp, typename _Alloc = std::allocator < _Tp > >
51 class vector:protected _Vector_base < _Tp,_Alloc >
53 public:
54 typedef __gnu_cxx::__normal_iterator < typename _Alloc::pointer,
55 vector < _Tp, _Alloc > > iterator;
56 iterator end ()
60 class MantaInterface
63 class RTRT
65 virtual CallbackHandle *registerTerminationCallback (CallbackBase_1Data <
66 MantaInterface * >*);
67 virtual void unregisterCallback (CallbackHandle *);
68 typedef vector < CallbackBase_1Data < int >*>PRCallbackMapType;
69 PRCallbackMapType parallelPreRenderCallbacks;
72 using namespace Manta;
73 CallbackHandle *
74 RTRT::registerTerminationCallback (CallbackBase_1Data < MantaInterface * >*cb)
76 return cb;
79 void
80 RTRT::unregisterCallback (CallbackHandle * callback)
83 typedef CallbackBase_1Data < int > callback_t;
84 callback_t *cb = static_cast < callback_t * >(callback);
85 find (parallelPreRenderCallbacks.end (), cb);