1 #include "ignore-warnings-from-headers.h" 2 g(int unusedInMainFile)3void g(int unusedInMainFile) {} 4 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' 8