r255937 - Add a test for r255875 & r255929, comparisons on DynTypeNode wrapped QualType.
Richard Trieu via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 17 15:20:58 PST 2015
Author: rtrieu
Date: Thu Dec 17 17:20:57 2015
New Revision: 255937
URL: http://llvm.org/viewvc/llvm-project?rev=255937&view=rev
Log:
Add a test for r255875 & r255929, comparisons on DynTypeNode wrapped QualType.
Modified:
cfe/trunk/unittests/AST/ASTTypeTraitsTest.cpp
Modified: cfe/trunk/unittests/AST/ASTTypeTraitsTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/AST/ASTTypeTraitsTest.cpp?rev=255937&r1=255936&r2=255937&view=diff
==============================================================================
--- cfe/trunk/unittests/AST/ASTTypeTraitsTest.cpp (original)
+++ cfe/trunk/unittests/AST/ASTTypeTraitsTest.cpp Thu Dec 17 17:20:57 2015
@@ -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
More information about the cfe-commits
mailing list