mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[test] IRGen: Adjust FileCheck pattern for nocapture refactoring in upstream LLVM
The current pattern does not match a ')' inside the argument list. This will no longer work because `nocapture` became `captures(none) in 29441e4f5fa5f5c7709f7cf180815ba97f611297 (llvm-project). Use a wildcard regex instead. Doing so does not compromise the test because the `unnamed_addr` attribute we are guarding against can appear only after the argument list. This is intended to reduce future conflicts with rebranch.
This commit is contained in:
@@ -43,9 +43,9 @@ class Derived : Base {
|
||||
|
||||
|
||||
// Check if the objc methods are not generated with the unnamed_addr attribute.
|
||||
// CHECK-IR-DAG: define {{.*}} @"$s4test4BaseC20supportsSecureCodingSbvgZTo"({{[^\)]*}}) #{{[0-9]+}} {
|
||||
// CHECK-IR-DAG: define {{.*}} @"$s4test4BaseC6encode4withySo7NSCoderC_tFTo"({{[^\)]*}}) #{{[0-9]+}} {
|
||||
// CHECK-IR-DAG: define {{.*}} @"$s4test7DerivedC20supportsSecureCodingSbvgZTo"({{[^\)]*}}) #{{[0-9]+}} {
|
||||
// CHECK-IR-DAG: define {{.*}} @"$s4test4BaseC20supportsSecureCodingSbvgZTo"({{.*}}) #{{[0-9]+}} {
|
||||
// CHECK-IR-DAG: define {{.*}} @"$s4test4BaseC6encode4withySo7NSCoderC_tFTo"({{.*}}) #{{[0-9]+}} {
|
||||
// CHECK-IR-DAG: define {{.*}} @"$s4test7DerivedC20supportsSecureCodingSbvgZTo"({{.*}}) #{{[0-9]+}} {
|
||||
|
||||
let d = Derived(s: "")
|
||||
if #available(macOS 10.13, iOS 11, tvOS 11, watchOS 4, *) {
|
||||
|
||||
Reference in New Issue
Block a user