diff options
Diffstat (limited to 'test/SemaCXX/return-stack-addr-2.cpp')
-rw-r--r-- | test/SemaCXX/return-stack-addr-2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaCXX/return-stack-addr-2.cpp b/test/SemaCXX/return-stack-addr-2.cpp index 47b45957e94b7..e848189bde787 100644 --- a/test/SemaCXX/return-stack-addr-2.cpp +++ b/test/SemaCXX/return-stack-addr-2.cpp @@ -65,7 +65,7 @@ const int *int6() { const int *int7(int x) { const int &x2 = x; // expected-note{{binding reference variable 'x2' here}} - return &x2; // expected-warning{{address of stack memory associated with local variable 'x' returned}} + return &x2; // expected-warning{{address of stack memory associated with parameter 'x' returned}} } const int *int8(const int &x = 5) { |