Debian Codegraph @

gcc/testsuite/g++.dg/tm/pr47340.C

raw
1 // { dg-do compile }
2 // { dg-options "-fgnu-tm" }
3
4 void* operator new(__SIZE_TYPE__)
5 #if __cplusplus <= 201402L
6 throw (int) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } }
7 #endif
8 ;
9
10 void *point;
11
12 void funky()
13 {
14 point = new (int);
15 }