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

18 lines
494 B
Swift

// RUN: %target-parse-verify-swift %clang-importer-sdk
// REQUIRES: objc_interop
import Darwin
let _: Fract? = nil // expected-error{{use of undeclared type 'Fract'}}
let _: Darwin.Fract? = nil // okay
let _: OSErr = 0
let _: OSStatus = noErr // noErr is from the overlay
let _: UniChar = 0
let _ = ProcessSerialNumber()
let _: Byte = 0 // expected-error {{use of undeclared type 'Byte'}}
Darwin.fakeAPIUsingByteInDarwin() as Int // expected-error {{'UInt8' is not convertible to 'Int'}}