mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Also removed the sdk 'feature' in favour of the more specific objc_interop. Swift SVN r24856
11 lines
290 B
Swift
11 lines
290 B
Swift
// RUN: %target-swift-frontend %s -parse -verify
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
import Foundation
|
|
|
|
func useUnavailable() {
|
|
var a = NSSimpleCString() // expected-error {{'NSSimpleCString' is unavailable}}
|
|
var b = NSConstantString() // expected-error {{'NSConstantString' is unavailable}}
|
|
}
|