uart: add support to drivers for FIFO'd uart variant
[nios2ecos.git] / tools / gcc4libstdxx / test.cc
blob7890301a6106754acef4dcd24fe32988d4085640
1 #include <stdio.h>
2 #include <cyg/kernel/kapi.h> // Kernel API.
3 #include <cyg/infra/diag.h> // For diagnostic printing.
5 void test(void)
7 diag_printf("Testing\n");
8 try
10 diag_printf("Testing throw\n");
11 throw 1;
12 } catch (int a)
14 diag_printf("Caught one exception\n");
20 int main(int argc, char **argv)
22 printf("Hello world\n");
23 test();
24 return 0;