llvm-for-llvmta/tools/clang/test/Sema/Inputs/warn-unreachable.h

7 lines
175 B
C
Raw Normal View History

2022-04-25 13:02:35 +02:00
// Test that this unreachable code warning is
// not reported because it is in a header.
void foo_unreachable_header() {
return;
foo_unreachable_header(); // no-warning
}