llvm-for-llvmta/tools/clang/test/SemaCXX/unused-with-error.cpp

9 lines
268 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -fsyntax-only -Wunused -verify %s
// Make sure 'unused' warnings are disabled when errors occurred.
static void foo(int *X) { // expected-note {{candidate}}
}
void bar(const int *Y) {
foo(Y); // expected-error {{no matching function for call}}
}