Welcome to mirror list, hosted at ThFree Co, Russian Federation.

unused-with-error.cpp « SemaCXX « test « clang - github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5660007c3bf1eefd4caa59b31cde7d9defb6d0f2 (plain)
1
2
3
4
5
6
7
8
// 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}}
}