bolt/deps/llvm-18.1.8/clang/test/Analysis/lvalue.cpp

8 lines
188 B
C++
Raw Normal View History

2025-02-14 19:21:04 +01:00
// RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s
// expected-no-diagnostics
int f1() {
int x = 0, y = 1;
return x += y; // Should bind a location to 'x += y'. No crash.
}