Files
swift-mirror/test/ClangModules/CoreMIDI_test.swift
Jordan Rose a493410402 [ClangImporter] Map MacTypes.h's ItemCount and ByteCount to Swift.Int.
typedef unsigned long ByteCount;
  typedef unsigned long ItemCount;

Both of these are still in use by CoreMIDI, but we don't have a reason to
keep them distinct in Swift.

rdar://problem/19939552

Swift SVN r25529
2015-02-25 05:00:06 +00:00

10 lines
218 B
Swift

// RUN: %target-parse-verify-swift %clang-importer-sdk
// REQUIRES: objc_interop
import CoreMIDI
func test() {
let _: String = MIDIGetNumberOfDevices() // expected-error {{'Int' is not convertible to 'String'}}
}