File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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
211213TEST (Attr, RegularKeywordAttribute) {
You can’t perform that action at this time.
0 commit comments