Skip to content

Commit dcbbdbe

Browse files
committed
[NFC] remove duplciated unittests for modules
There was an overlook to duplicate the unittests for modules. This patch removes one of this duplication.
1 parent 4d927fc commit dcbbdbe

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

clang/unittests/AST/DeclTest.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -240,23 +240,6 @@ TEST(Decl, ModuleAndInternalLinkage) {
240240

241241
EXPECT_EQ(b->getFormalLinkage(), ModuleLinkage);
242242
EXPECT_EQ(g->getFormalLinkage(), ModuleLinkage);
243-
244-
AST = tooling::buildASTFromCodeWithArgs(
245-
Code.code(), /*Args=*/{"-std=c++20"});
246-
ASTContext &CtxTS = AST->getASTContext();
247-
a = selectFirst<VarDecl>("a", match(varDecl(hasName("a")).bind("a"), CtxTS));
248-
f = selectFirst<FunctionDecl>(
249-
"f", match(functionDecl(hasName("f")).bind("f"), CtxTS));
250-
251-
EXPECT_EQ(a->getFormalLinkage(), InternalLinkage);
252-
EXPECT_EQ(f->getFormalLinkage(), InternalLinkage);
253-
254-
b = selectFirst<VarDecl>("b", match(varDecl(hasName("b")).bind("b"), CtxTS));
255-
g = selectFirst<FunctionDecl>(
256-
"g", match(functionDecl(hasName("g")).bind("g"), CtxTS));
257-
258-
EXPECT_EQ(b->getFormalLinkage(), ModuleLinkage);
259-
EXPECT_EQ(g->getFormalLinkage(), ModuleLinkage);
260243
}
261244

262245
TEST(Decl, GetNonTransparentDeclContext) {

0 commit comments

Comments
 (0)