From: Richard Trieu Date: Thu, 17 Dec 2015 23:20:57 +0000 (+0000) Subject: Add a test for r255875 & r255929, comparisons on DynTypeNode wrapped QualType. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c6aebac5161b5a3e6e495fdea3ac39e1af3815d;p=clang 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 --- 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