Merge pull request #8815 from jketema/unreachable-test-case

C++: Add non-returning function test case using `__builtin_expect`
This commit is contained in:
Mathias Vorreiter Pedersen
2022-04-22 16:47:44 +01:00
committed by GitHub

View File

@@ -105,3 +105,8 @@ _Noreturn void f15();
int f16() {
f15(); // GOOD
}
int f17() {
if (__builtin_expect(1, 0))
__builtin_unreachable(); // GOOD
}