llvm-for-llvmta/tools/clang/test/Analysis/diagnostics/invalid-srcloc-fix.cpp

13 lines
264 B
C++
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_analyze_cc1 -verify %s \
// RUN: -analyzer-output=plist -o %t.plist \
// RUN: -analyzer-checker=core \
// RUN: -analyzer-checker=debug.ReportStmts
struct h {
operator int();
};
int k() {
return h(); // expected-warning 3 {{Statement}}
}