summaryrefslogtreecommitdiff
path: root/test/Analysis/stackaddrleak.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Analysis/stackaddrleak.c')
-rw-r--r--test/Analysis/stackaddrleak.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Analysis/stackaddrleak.c b/test/Analysis/stackaddrleak.c
index a037d12fe40c7..8a1519e7874f0 100644
--- a/test/Analysis/stackaddrleak.c
+++ b/test/Analysis/stackaddrleak.c
@@ -37,7 +37,7 @@ void test_multi_return() {
intptr_t returnAsNonLoc() {
int x;
- return (intptr_t)&x; // expected-warning{{Address of stack memory associated with local variable 'x' returned to caller}}
+ return (intptr_t)&x; // expected-warning{{Address of stack memory associated with local variable 'x' returned to caller}} expected-warning{{address of stack memory associated with local variable 'x' returned}}
}
bool returnAsBool() {