2011-03-01 03:49:42 +08:00
|
|
|
// RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-store=region -verify %s
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
2011-01-10 11:54:19 +08:00
|
|
|
|
|
|
|
int f1() {
|
|
|
|
int x = 0, y = 1;
|
|
|
|
return x += y; // Should bind a location to 'x += y'. No crash.
|
|
|
|
}
|