blob: 473146c0be4bd6371be378d8d0a7720bf3c47669 [file] [log] [blame]
Anna Zaks66253352012-03-08 23:16:35 +00001// RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-ipa=inlining -analyzer-store region -verify %s
Zhongxing Xu15f6b422010-03-02 10:08:30 +00002
3// Test parameter 'a' is registered to LiveVariables analysis data although it
4// is not referenced in the function body.
Zhongxing Xu97ccfa52010-03-03 01:02:48 +00005// Before processing 'return 1;', in RemoveDeadBindings(), we query the liveness
6// of 'a', because we have a binding for it due to parameter passing.
Zhongxing Xu15f6b422010-03-02 10:08:30 +00007int f1(int a) {
8 return 1;
9}
10
11void f2() {
12 int x;
13 x = f1(1);
14}