diff options
Diffstat (limited to 'test/SemaCXX/rval-references.cpp')
-rw-r--r-- | test/SemaCXX/rval-references.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/SemaCXX/rval-references.cpp b/test/SemaCXX/rval-references.cpp index 94b09ce2cb2ad..838bf484fe28f 100644 --- a/test/SemaCXX/rval-references.cpp +++ b/test/SemaCXX/rval-references.cpp @@ -65,10 +65,9 @@ void f() { } int&& should_warn(int i) { - // FIXME: The stack address return test doesn't reason about casts. - return static_cast<int&&>(i); // xpected-warning {{returning reference to temporary}} + return static_cast<int&&>(i); // expected-warning {{reference to stack memory associated with parameter 'i' returned}} } -int&& should_not_warn(int&& i) { // But GCC 4.4 does +int&& should_not_warn(int&& i) { return static_cast<int&&>(i); } |