Ticket #38774: test.cc

File test.cc, 328 bytes (added by howarth@…, 11 years ago)

test case that demonstrates current gcc47 uses two unwinders

Line 
1#include <future>
2#include <iostream>
3
4int main() {
5   std::cout << "doing the test" << std::endl;
6   std::promise<bool> mypromise;
7   std::future<bool> myfuture = mypromise.get_future();
8   mypromise.set_value(true);
9   bool result = myfuture.get();
10   std::cout << "success, result is " << result << std::endl;
11   return 0;
12}