[ create a new paste ] login | about

Link: http://codepad.org/MV3t2wLA    [ raw code | output | fork ]

C++, pasted on Feb 24:
1
2
3
4
5
6
7
8
9
10
void testfunc()
{
    return throw sizeof 42;
}

int main()
{
    try { testfunc(); }
    catch(...) { std::cout << "exception" << std::endl; }
}


Output:
1
exception


Create a new paste based on this one


Comments: