llvm-project/clang/test/Analysis/lvalue.cpp

7 lines
187 B
C++
Raw Normal View History

// RUN: %clang_cc1 -analyze -analyzer-check-objc-mem -analyzer-store=region -verify %s
int f1() {
int x = 0, y = 1;
return x += y; // Should bind a location to 'x += y'. No crash.
}