mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Driver: Pass -disable-upcoming-feature and -disable-experimental-feature to the frontend.
The legacy driver is still used to build the compiler on Windows, so we need it to handle these new flags correctly in order to adopt them in the stdlib.
This commit is contained in:
18
test/Driver/features.swift
Normal file
18
test/Driver/features.swift
Normal file
@@ -0,0 +1,18 @@
|
||||
// RUN: %swiftc_driver -emit-executable -o %t.exe %s \
|
||||
// RUN: -enable-upcoming-feature MemberImportVisibility \
|
||||
// RUN: -enable-experimental-feature ParserValidation \
|
||||
// RUN: -disable-upcoming-feature MemberImportVisibility \
|
||||
// RUN: -disable-experimental-feature ParserValidation \
|
||||
// RUN: -disallow-use-new-driver -driver-print-jobs 2>&1 | %FileCheck %s
|
||||
|
||||
// The new driver has its own test for this
|
||||
|
||||
// REQUIRES: cplusplus_driver
|
||||
// REQUIRES: swift_feature_ParserValidation
|
||||
// REQUIRES: swift_feature_MemberImportVisibility
|
||||
|
||||
// CHECK: {{.*}}swift{{c|-frontend}}{{(.exe)?"?}} -frontend
|
||||
// CHECK-SAME: -enable-upcoming-feature MemberImportVisibility
|
||||
// CHECK-SAME: -enable-experimental-feature ParserValidation
|
||||
// CHECK-SAME: -disable-upcoming-feature MemberImportVisibility
|
||||
// CHECK-SAME: -disable-experimental-feature ParserValidation
|
||||
Reference in New Issue
Block a user