Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cfg/std.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8814,6 +8814,12 @@ initializer list (7) string& replace (const_iterator i1, const_iterator i2, init
<use-retval/>
<leak-ignore/>
</function>
<function name="std::throw_with_nested">
<arg nr="1" direction="in" indirect="0"/>
<returnValue type="void"/>
<noreturn>true</noreturn>
<leak-ignore/>
</function>
<memory>
<alloc init="false" buffer-size="malloc">malloc,std::malloc</alloc>
<alloc init="true" buffer-size="calloc">calloc,std::calloc</alloc>
Expand Down
10 changes: 10 additions & 0 deletions test/cfg/std.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5367,3 +5367,13 @@ int containerOutOfBounds_std_initializer_list() { // #14340
int i = *x.end();
return i + containerOutOfBounds_std_initializer_list_access(x);
}

int* missingReturn_std_throw_with_nested() { // #14374
try {
int* p = new int();
return p;
}
catch (...) {
std::throw_with_nested(std::runtime_error("xyz"));
}
}
Loading