YouCompleteMe/cpp/llvm/tools/clang/test/Analysis/lvalue.cpp

7 lines
185 B
C++
Raw Normal View History

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