mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
C++: Add non-returning function test case using __builtin_expect
This commit is contained in:
@@ -105,3 +105,8 @@ _Noreturn void f15();
|
||||
int f16() {
|
||||
f15(); // GOOD
|
||||
}
|
||||
|
||||
int f17() {
|
||||
if (__builtin_expect(1, 0))
|
||||
__builtin_unreachable(); // GOOD
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user