Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Index / ignore-warnings-from-headers.cpp
blob3b8d765c4a67a354ff62ad4027d0294bd43741e8
1 #include "ignore-warnings-from-headers.h"
3 void g(int unusedInMainFile) {}
5 // RUN: env CINDEXTEST_IGNORE_NONERRORS_FROM_INCLUDED_FILES=1 c-index-test -test-load-source function %s -Wunused-parameter 2>&1 | FileCheck %s
6 // CHECK-NOT: warning: unused parameter 'unusedInHeader'
7 // CHECK: warning: unused parameter 'unusedInMainFile'