diff options
Diffstat (limited to 'test/Analysis/stack-addr-ps.c')
-rw-r--r-- | test/Analysis/stack-addr-ps.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Analysis/stack-addr-ps.c b/test/Analysis/stack-addr-ps.c index f8cadbe..342b3b1 100644 --- a/test/Analysis/stack-addr-ps.c +++ b/test/Analysis/stack-addr-ps.c @@ -3,11 +3,11 @@ int* f1() { int x = 0; - 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}} + 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 memory associated with local variable 'y' 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) { @@ -16,7 +16,7 @@ int* f3(int x, int *y) { if (x) y = &w; - return y; // expected-warning{{Address of stack memory associated with local variable 'w' returned.}} + return y; // expected-warning{{Address of stack memory associated with local variable 'w' returned to caller}} } void* compound_literal(int x, int y) { |