File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -270,8 +270,10 @@ void ToolChain::addCommonFrontendArgs(const OutputInfo &OI,
270
270
inputArgs.AddLastArg (arguments, options::OPT_disable_dynamic_actor_isolation);
271
271
inputArgs.AddLastArg (arguments, options::OPT_warn_concurrency);
272
272
inputArgs.AddLastArg (arguments, options::OPT_strict_concurrency);
273
- inputArgs.AddAllArgs (arguments, options::OPT_enable_experimental_feature);
274
- inputArgs.AddAllArgs (arguments, options::OPT_enable_upcoming_feature);
273
+ inputArgs.addAllArgs (arguments, {options::OPT_enable_experimental_feature,
274
+ options::OPT_disable_experimental_feature,
275
+ options::OPT_enable_upcoming_feature,
276
+ options::OPT_disable_upcoming_feature});
275
277
inputArgs.AddLastArg (arguments, options::OPT_warn_implicit_overrides);
276
278
inputArgs.AddLastArg (arguments, options::OPT_typo_correction_limit);
277
279
inputArgs.AddLastArg (arguments, options::OPT_enable_app_extension);
Original file line number Diff line number Diff line change
1
+ // RUN: %swiftc_driver -emit-executable -o %t.exe %s \
2
+ // RUN: -enable-upcoming-feature MemberImportVisibility \
3
+ // RUN: -enable-experimental-feature ParserValidation \
4
+ // RUN: -disable-upcoming-feature MemberImportVisibility \
5
+ // RUN: -disable-experimental-feature ParserValidation \
6
+ // RUN: -disallow-use-new-driver -driver-print-jobs 2>&1 | %FileCheck %s
7
+
8
+ // The new driver has its own test for this
9
+
10
+ // REQUIRES: cplusplus_driver
11
+ // REQUIRES: swift_feature_ParserValidation
12
+ // REQUIRES: swift_feature_MemberImportVisibility
13
+
14
+ // CHECK: {{.*}}swift{{c|-frontend}}{{(.exe)?"?}} -frontend
15
+ // CHECK-SAME: -enable-upcoming-feature MemberImportVisibility
16
+ // CHECK-SAME: -enable-experimental-feature ParserValidation
17
+ // CHECK-SAME: -disable-upcoming-feature MemberImportVisibility
18
+ // CHECK-SAME: -disable-experimental-feature ParserValidation
You can’t perform that action at this time.
0 commit comments