diff options
Diffstat (limited to 'clang/test/Analysis/stack-addr-ps.c')
-rw-r--r-- | clang/test/Analysis/stack-addr-ps.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/Analysis/stack-addr-ps.c b/clang/test/Analysis/stack-addr-ps.c index c59df0904dd..8e2a0c06af4 100644 --- a/clang/test/Analysis/stack-addr-ps.c +++ b/clang/test/Analysis/stack-addr-ps.c @@ -2,11 +2,11 @@ int* f1() { int x = 0; - return &x; // expected-warning{{Address of stack-allocated variable returned.}} expected-warning{{address of stack memory associated with local variable 'x' returned}} + return &x; // expected-warning{{Address of stack memory associated with local variable 'x' returned.}} expected-warning{{address of stack memory associated with local variable 'x' returned}} } int* f2(int y) { - return &y; // expected-warning{{Address of stack-allocated variable returned.}} expected-warning{{address of stack memory associated with local variable 'y' returned}} + return &y; // expected-warning{{Address of stack memory associated with local variable 'y' returned.}} expected-warning{{address of stack memory associated with local variable 'y' returned}} } int* f3(int x, int *y) { @@ -15,7 +15,7 @@ int* f3(int x, int *y) { if (x) y = &w; - return y; // expected-warning{{Address of stack-allocated variable returned.}} + return y; // expected-warning{{Address of stack memory associated with local variable 'w' returned.}} } |