Rebase.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / lambda / lambda-eh2.C
blob1ef510a484a90e333835e86cf6ea1317c896f823
1 // PR c++/47263
2 // PR c++/49260
3 // { dg-options "-fno-asynchronous-unwind-tables -fno-dwarf2-cfi-asm" }
4 // { dg-do run { target c++11 } }
6 #include <exception>
8 int main( void )
10   std::set_unexpected( []{ throw 0; } );
11   try
12     {
13       []() throw( int ) { throw nullptr; }();
14     }
15   catch( int )
16     { }