mirror of
https://github.com/intel/llvm.git
synced 2026-02-04 11:38:04 +08:00
11 lines
281 B
C++
11 lines
281 B
C++
// RUN: %clang_analyze_cc1 -analyzer-checker=core \
|
|
// RUN: -analyzer-checker=debug.ExprInspection -verify %s
|
|
|
|
void clang_analyzer_dump(bool);
|
|
|
|
void foo(int &x) {
|
|
int *p = &x; // 'p' is the same SVal as 'x'
|
|
bool b = p;
|
|
clang_analyzer_dump(b); // expected-warning {{1 U1b}}
|
|
}
|