xref: /llvm-project/clang/test/Analysis/lvalue.cpp (revision ffe7950ebc62380c3afc7c71f454a1db3f6f5c76)
1 // RUN: %clang_analyze_cc1 -analyzer-checker=core -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