summaryrefslogtreecommitdiff
path: root/clang/test/Analysis/lvalue.cpp
blob: 0cc42f50372b3b82a46f9336f8de6aaab2ee5b7b (about) (plain)
1
2
3
4
5
6
// 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.
}