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