Files
swift-mirror/test/Driver/enable_regex_literals_flag.swift
Artem Chikin 7ba377b3c2 Rename flag for enabling forward slash literals to be less ambiguous.
Previous spelling could easily be mistaken for gating the entire feature.

Part of rdar://91119995
2022-04-06 09:46:40 -07:00

11 lines
335 B
Swift

// RUN: %target-swiftc_driver -enable-bare-slash-regex -disallow-use-new-driver -driver-print-jobs %s 2>^1 | %FileCheck %s
// The new driver has its own test for this
// REQUIRES: cplusplus_driver
// CHECK: {{.*}}swift{{c|-frontend}}{{(.exe)?"?}} -frontend{{.*}}-enable-bare-slash-regex
public func foo() -> Int {
return 42
}