re PR c/89525 (inform messages from -Wbuiltin-declaration-mismatch even with -w)
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.robertl / eb123.C
blob221b38fe4474b603ea4e02eb288a91ac8a58cde8
1 // { dg-do assemble  }
2 // { dg-options "-O2 -W   " }
3 #include "stdio.h"
5 void writeNote()
6 #if __cplusplus <= 201402L
7 throw( int )                    // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } }
8 #endif
10     printf( "hello world\n" );
11     try { }
12     catch( int ){ throw; }