Skip to content

Commit 89145d5

Browse files
Update std.cpp
1 parent 27283be commit 89145d5

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

test/cfg/std.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5367,3 +5367,13 @@ int containerOutOfBounds_std_initializer_list() { // #14340
53675367
int i = *x.end();
53685368
return i + containerOutOfBounds_std_initializer_list_access(x);
53695369
}
5370+
5371+
int* missingReturn_std_throw_with_nested() { // #14374
5372+
try {
5373+
int* p = new int();
5374+
return p;
5375+
}
5376+
catch (...) {
5377+
std::throw_with_nested(std::runtime_error("xyz"));
5378+
}
5379+
}

0 commit comments

Comments
 (0)