Files
swift-mirror/test/ClangModules/sdk.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

21 lines
930 B
Swift

// RUN: %target-swift-frontend -parse -verify %s
// XFAIL: linux
import Foundation
// Swift and Foundation types should work.
func available_Int(a: Int) {}
func available_NSDateFormatter(a: NSDateFormatter) {}
// Some traditional Objective-C types should fail with fixits.
func unavailable_id(a: id) {} // expected-error {{use of undeclared type 'id'; did you mean to use 'AnyObject'?}}
func unavailable_Class(a: Class) {} // expected-error {{use of undeclared type 'Class'; did you mean to use 'AnyClass'?}}
func unavailable_BOOL(a: BOOL) {} // expected-error {{use of undeclared type 'BOOL'; did you mean to use 'ObjCBool'?}}
func unavailable_SEL(a: SEL) {} // expected-error {{use of undeclared type 'SEL'; did you mean to use 'Selector'?}}
func unavailable_NSUInteger(a: NSUInteger) {} // expected-error {{use of undeclared type 'NSUInteger'; did you mean to use 'Int'?}} expected-note {{did you mean to use 'UInt'?}}