summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/uninit-const.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Analysis/uninit-const.cpp')
-rw-r--r--clang/test/Analysis/uninit-const.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Analysis/uninit-const.cpp b/clang/test/Analysis/uninit-const.cpp
index 75e932a77ce..db969bfb67d 100644
--- a/clang/test/Analysis/uninit-const.cpp
+++ b/clang/test/Analysis/uninit-const.cpp
@@ -122,7 +122,7 @@ void f1(void) {
}
void f_uninit(void) {
- int x;
+ int x; // expected-note {{'x' declared without an initial value}}
doStuff_uninit(&x); // expected-warning {{1st function call argument is a pointer to uninitialized value}}
// expected-note@-1 {{1st function call argument is a pointer to uninitialized value}}
}
OpenPOWER on IntegriCloud