Dominic Chen | 184c624 | 2017-03-03 18:02:02 +0000 | [diff] [blame] | 1 | // RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-store=region -verify %s |
Andy Gibbs | c6e68da | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 2 | // expected-no-diagnostics |
Zhongxing Xu | 5609e21 | 2011-01-10 03:54:19 +0000 | [diff] [blame] | 3 | |
4 | int f1() { | ||||
5 | int x = 0, y = 1; | ||||
6 | return x += y; // Should bind a location to 'x += y'. No crash. | ||||
7 | } |