From 9e7a8172a3f4f26062a9866aa874ff3b5776e49d Mon Sep 17 00:00:00 2001 From: Siva Chandra Date: Wed, 15 Apr 2015 18:35:29 +0000 Subject: [PATCH] [TestRvalueReferences] Fix an expectation. Summary: If 'i' is an rvalue reference to an 'int', evaluating it with the 'expression' command will return an 'int' value and not an 'int &&'. Before this patch, an 'int &&' type was expected. Enabled the test for clang and gcc as all parts of the test now pass when the testcase is compiled with them. Test Plan: dotest.py -C -p TestRvalueReferences Reviewers: spyffe, chaoren Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D9005 llvm-svn: 235036 --- lldb/test/lang/cpp/rvalue-references/TestRvalueReferences.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lldb/test/lang/cpp/rvalue-references/TestRvalueReferences.py b/lldb/test/lang/cpp/rvalue-references/TestRvalueReferences.py index 3a855bdcfa8e..435e19157ace 100644 --- a/lldb/test/lang/cpp/rvalue-references/TestRvalueReferences.py +++ b/lldb/test/lang/cpp/rvalue-references/TestRvalueReferences.py @@ -19,8 +19,6 @@ class RvalueReferencesTestCase(TestBase): self.static_method_commands() #rdar://problem/11479676 - @expectedFailureClang("rdar://problem/11479676 pr16762: Expression evaluation of an rvalue-reference does not show the correct type.") - @expectedFailureGcc("GCC (4.7) does not emit correct DWARF tags for rvalue-references") @expectedFailureIcc("ICC (13.1, 14-beta) do not emit DW_TAG_rvalue_reference_type.") @dwarf_test def test_with_dwarf_and_run_command(self): @@ -50,7 +48,7 @@ class RvalueReferencesTestCase(TestBase): substrs = ["i = 0x", "&i = 3"]) self.expect("expression -- i", - startstr = "(int &&", + startstr = "(int) ", substrs = ["3"]) self.expect("breakpoint delete 1")