Skip to content

Commit 21af94d

Browse files
author
v01dxyz
committed
tmp: fix test
1 parent 7e647b9 commit 21af94d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

clang/unittests/AST/AttrTest.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,12 @@ TEST(Attr, AnnotateType) {
181181
// Fortunately, ObjC has one specific function type attribute that
182182
// creates an AttributedType with different modified type and
183183
// equivalent type.
184-
auto AST_ObjC = buildASTFromCodeWithArgs(R"objc(
184+
auto AST_ObjC = buildASTFromCodeWithArgs(
185+
R"objc(
185186
__attribute__((ns_returns_retained)) id f();
186-
)objc", {"-fobjc-arc",}, "input.mm");
187+
)objc",
188+
{"-fobjc-arc", "-fsyntax-only", "-fobjc-runtime=macosx-10.7"},
189+
"input.mm");
187190
{
188191
const FunctionDecl *f = getFunctionNode(AST_ObjC.get(), "f");
189192
const FunctionTypeLoc FTL = f->getFunctionTypeLoc();
@@ -205,7 +208,6 @@ TEST(Attr, AnnotateType) {
205208
AutoTypeLoc AutoTL;
206209
AssertAnnotatedAs(Var->getTypeSourceInfo()->getTypeLoc(), "auto", AutoTL);
207210
}
208-
209211
}
210212

211213
TEST(Attr, RegularKeywordAttribute) {

0 commit comments

Comments
 (0)