diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-12-03 01:14:32 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-12-03 01:14:32 +0000 |
commit | ea344c8140e731b361ec0e2b264c1f486b383025 (patch) | |
tree | 0a788ea9cce74e9fea8d948c9104873b3ee6d9bc /unittests/ASTMatchers/ASTMatchersNodeTest.cpp | |
parent | 431cab408b396f55b773d8896951c9f718558403 (diff) |
DR616, and part of P0135R1: member access (or pointer-to-member access) on a
temporary produces an xvalue, not a prvalue. Support this by materializing the
temporary prior to performing the member access.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@288563 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/ASTMatchers/ASTMatchersNodeTest.cpp')
-rw-r--r-- | unittests/ASTMatchers/ASTMatchersNodeTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/ASTMatchers/ASTMatchersNodeTest.cpp b/unittests/ASTMatchers/ASTMatchersNodeTest.cpp index a981e10f19..dd45ca3ced 100644 --- a/unittests/ASTMatchers/ASTMatchersNodeTest.cpp +++ b/unittests/ASTMatchers/ASTMatchersNodeTest.cpp @@ -594,7 +594,7 @@ TEST(MaterializeTemporaryExpr, MatchesTemporary) { materializeTemporaryExpr())); EXPECT_TRUE( - notMatches(ClassString + + matches(ClassString + "string GetStringByValue();" "void run() { int k = GetStringByValue().length(); }", materializeTemporaryExpr())); |