forked from OSchip/llvm-project
11 lines
290 B
C++
11 lines
290 B
C++
// RUN: %clang_analyze_cc1 -analyze -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}}
|
|
}
|