xref: /aosp_15_r20/external/clang/test/Analysis/lvalue.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-store=region -verify %s
2*67e74705SXin Li // expected-no-diagnostics
3*67e74705SXin Li 
f1()4*67e74705SXin Li int f1() {
5*67e74705SXin Li   int x = 0, y = 1;
6*67e74705SXin Li   return x += y; // Should bind a location to 'x += y'. No crash.
7*67e74705SXin Li }
8