Ticket #5522: test.cpp

File test.cpp, 300 bytes (added by sefi@…, 11 years ago)

Testcase

Line 
1#include <boost/foreach.hpp>
2#include <iostream>
3#include <ostream>
4#include <vector>
5
6typedef std::vector<
7 int
8> int_vector;
9
10int_vector const
11test()
12{
13 int_vector ret(2, 2);
14
15 return ret;
16}
17
18int
19main()
20{
21 BOOST_FOREACH(
22 int_vector::const_reference ref,
23 test()
24 )
25 std::cout << ref << '\n';
26}