xref: /llvm-project/clang/test/Analysis/diagnostics/invalid-srcloc-fix.cpp (revision 4962816e7242b9cec7a1a1157e4efaac75a6120a)
1 // RUN: %clang_analyze_cc1 -verify %s \
2 // RUN:   -analyzer-output=plist -o %t.plist \
3 // RUN:   -analyzer-checker=core \
4 // RUN:   -analyzer-checker=debug.ReportStmts
5 
6 struct h {
7   operator int();
8 };
9 
k()10 int k() {
11   return h(); // expected-warning 3 {{Statement}}
12 }
13