Ticket #38778: test.cc

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

testcase that exposes use of two unwinders in current packaging

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}