Argyrios Kyrtzidis | c4d2c90 | 2011-02-28 19:49:42 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-inline-call -analyzer-store region -verify %s |
Zhongxing Xu | 57d3b76 | 2010-03-04 09:04:52 +0000 | [diff] [blame] | 2 | |
Ted Kremenek | 1d26f48 | 2011-10-24 01:32:45 +0000 | [diff] [blame] | 3 | // Test when entering f1(), we set the right AnalysisDeclContext to Environment. |
Zhongxing Xu | 57d3b76 | 2010-03-04 09:04:52 +0000 | [diff] [blame] | 4 | // Otherwise, block-level expr '1 && a' would not be block-level. |
| 5 | int a; |
| 6 | |
| 7 | void f1() { |
| 8 | if (1 && a) |
| 9 | return; |
| 10 | } |
| 11 | |
| 12 | void f2() { |
| 13 | f1(); |
| 14 | } |