Files
swift-mirror/validation-test/Sema/sr8209.swift
Tim Kientzle 8ad39887b5 Ignore output data that's not relevant for this test.
The previous code expects output like this:
```
define hidden swiftcc i8* @"$s6SR82094test10ObjectiveC8SelectorVyF"() #0 {
```

But in certain build modes, we get extra debug information that looks like this:
```
define hidden swiftcc i8* @"$s6SR82094test10ObjectiveC8SelectorVyF"() #0 !dbg !47 {
```

I stumbled over this while running tests with a variety of different
options.
2020-02-20 12:28:02 -08:00

16 lines
816 B
Swift

// RUN: %target-swift-frontend -module-name SR8209 -primary-file %s %S/Inputs/sr8209-helper.swift -emit-ir | %FileCheck %s
// RUN: %target-swift-frontend -module-name SR8209 -primary-file %s %S/Inputs/sr8209-helper.swift -DREVERSE -emit-ir | %FileCheck %s
// RUN: %target-swift-frontend -module-name SR8209 %S/Inputs/sr8209-helper.swift -primary-file %s -emit-ir | %FileCheck %s
// RUN: %target-swift-frontend -module-name SR8209 %S/Inputs/sr8209-helper.swift -primary-file %s -DREVERSE -emit-ir | %FileCheck %s
// REQUIRES: objc_interop
import Foundation
// CHECK-LABEL: define {{.+}} @"$s6SR82094test10ObjectiveC8SelectorVyF"() {{#[0-9]+}}
func test() -> Selector {
// CHECK: = load {{.+}} @"\01L_selector(isAsynchronous)"
return #selector(getter: AsyncValueBlockOperation.isAsynchronous)
// CHECK: ret
}