File tree Expand file tree Collapse file tree
test/sync/mutual_exclusion Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ int main()
9090 // empty queue push lvalue/copyable succeeds
9191 boost::deque_adaptor<boost::sync_deque<int > > sq;
9292 boost::deque_back<int > q (sq);
93- int i;
93+ int i = 42 ;
9494 q.push (i);
9595 BOOST_TEST (! q.empty ());
9696 BOOST_TEST (! q.full ());
@@ -140,7 +140,7 @@ int main()
140140 // empty queue push lvalue succeeds
141141 boost::deque_adaptor<boost::sync_deque<int > > sq;
142142 boost::deque_back<int > q (sq);
143- int i;
143+ int i = 42 ;
144144 q.push (i);
145145 BOOST_TEST (! q.empty ());
146146 BOOST_TEST (! q.full ());
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ int main()
9090 // empty queue push lvalue/copyable succeeds
9191 boost::queue_adaptor<boost::sync_queue<int > > sq;
9292 boost::queue_back<int > q (sq);
93- int i;
93+ int i = 42 ;
9494 q.push (i);
9595 BOOST_TEST (! q.empty ());
9696 BOOST_TEST (! q.full ());
@@ -141,7 +141,7 @@ int main()
141141 // empty queue push lvalue succeeds
142142 boost::queue_adaptor<boost::sync_queue<int > > sq;
143143 boost::queue_back<int > q (sq);
144- int i;
144+ int i = 42 ;
145145 q.push (i);
146146 BOOST_TEST (! q.empty ());
147147 BOOST_TEST (! q.full ());
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ int main()
103103 {
104104 // empty queue push value succeeds
105105 boost::sync_bounded_queue<int > q (2 );
106- int i;
106+ int i = 42 ;
107107 q.push (i);
108108 BOOST_TEST (! q.empty ());
109109 BOOST_TEST (! q.full ());
@@ -334,7 +334,7 @@ int main()
334334 {
335335 // empty queue push value succeeds
336336 boost::sync_bounded_queue<int > q (2 );
337- int i;
337+ int i = 42 ;
338338 q.push_back (i);
339339 BOOST_TEST (! q.empty ());
340340 BOOST_TEST (! q.full ());
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ int main()
6868 {
6969 // empty queue push lvalue/copyable succeeds
7070 boost::sync_deque<int > q;
71- int i;
71+ int i = 42 ;
7272 q.push_back (i);
7373 BOOST_TEST (! q.empty ());
7474 BOOST_TEST (! q.full ());
@@ -111,7 +111,7 @@ int main()
111111 {
112112 // empty queue push lvalue succeeds
113113 boost::sync_deque<int > q;
114- int i;
114+ int i = 42 ;
115115 q.push_back (i);
116116 BOOST_TEST (! q.empty ());
117117 BOOST_TEST (! q.full ());
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ int main()
8282 {
8383 // empty queue push lvalue succeeds
8484 boost::sync_queue<int > q;
85- int i;
85+ int i = 42 ;
8686 q.push (i);
8787 BOOST_TEST (! q.empty ());
8888 BOOST_TEST (! q.full ());
You can’t perform that action at this time.
0 commit comments