Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.robertl/eb123.C

raw
1 // { dg-do assemble }
2 // { dg-options "-O2 -W " }
3 #include "stdio.h"
4
5 void writeNote()
6 #if __cplusplus <= 201402L
7 throw( int ) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } }
8 #endif
9 {
10 printf( "hello world\n" );
11 try { }
12 catch( int ){ throw; }
13 }