1f51a89d39
These were ignored by git accidentally. We want ALL OF THEM since they all came in the llvm/clang source distribution.
9 lines
268 B
C++
9 lines
268 B
C++
// 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}}
|
|
}
|