llvm-for-llvmta/tools/clang/test/Index/skipped-bodies-unused.cpp

9 lines
316 B
C++
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// RUN: env CINDEXTEST_SKIP_FUNCTION_BODIES=1 c-index-test -test-load-source all %s -Wunused-parameter 2>&1 \
// RUN: | FileCheck %s
// No 'unused parameter' warnings should be shown when skipping the function bodies.
inline int foo(int used, int unused) {
used = 100;
}
// CHECK-NOT: warning: unused parameter