analyzer: Use noexcept instead of throw() for C++11 and later (PR 96014)
gcc/testsuite/ChangeLog: PR testsuite/96014 * g++.dg/analyzer/pr94028.C: Replace dynamic exception specification with noexcept-specifier for C++11 and later.
This commit is contained in:
parent
cc1ef413a8
commit
75edc31f9e
@ -12,7 +12,12 @@ enum e {} i;
|
||||
|
||||
struct j
|
||||
{
|
||||
void *operator new (__SIZE_TYPE__ b) throw()
|
||||
void *operator new (__SIZE_TYPE__ b)
|
||||
#if __cplusplus >= 201103L
|
||||
noexcept
|
||||
#else
|
||||
throw()
|
||||
#endif
|
||||
{
|
||||
return calloc (b, sizeof (int)); // { dg-warning "leak" }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user