From 3c6aebac5161b5a3e6e495fdea3ac39e1af3815d Mon Sep 17 00:00:00 2001 From: Richard Trieu Date: Thu, 17 Dec 2015 23:20:57 +0000 Subject: [PATCH] Add a test for r255875 & r255929, comparisons on DynTypeNode wrapped QualType. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@255937 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/AST/ASTTypeTraitsTest.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/unittests/AST/ASTTypeTraitsTest.cpp b/unittests/AST/ASTTypeTraitsTest.cpp index eeb01ccad1..b6356538a1 100644 --- a/unittests/AST/ASTTypeTraitsTest.cpp +++ b/unittests/AST/ASTTypeTraitsTest.cpp @@ -162,5 +162,12 @@ TEST(DynTypedNode, StmtPrint) { EXPECT_TRUE(Verifier.match("void f() {}", stmt())); } +TEST(DynTypedNode, QualType) { + QualType Q; + DynTypedNode Node = DynTypedNode::create(Q); + EXPECT_TRUE(Node == Node); + EXPECT_FALSE(Node < Node); +} + } // namespace ast_type_traits } // namespace clang -- 2.40.0