source: branches/libc-0.6/testcase/throw-3.cpp@ 3024

Last change on this file since 3024 was 1726, checked in by bird, 21 years ago

* empty log message *

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 303 bytes
Line 
1#include <stdio.h>
2int main()
3{
4 printf("throw-3: TESTING\n");
5 try
6 {
7 printf("throw-3: throw 7\n");
8 throw 7;
9 printf("throw-3: FAILURE\n");
10 return 1;
11 }
12 catch (...)
13 {
14 printf("throw-3: SUCCESS - exception caught\n");
15 return 0;
16 }
17}
18
Note: See TracBrowser for help on using the repository browser.