Files
swift-mirror/test/Interpreter/SDK/FoundationDiagnostics.swift
Graham Batty 83b4384fac Update test flags for linux failures and support.
Also removed the sdk 'feature' in favour of the more specific
objc_interop.

Swift SVN r24856
2015-01-30 21:31:48 +00:00

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}}
}