summaryrefslogtreecommitdiffstats
path: root/test/Analysis/diagnostics/invalid-srcloc-fix.cpp
blob: 0cef5e3d0f04145a18fca84c75cb998ece68483c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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}}
}