Files
swift-mirror/test/Serialization/builtin.swift
Arnold Schwaighofer 5da9911d68 Fix failing test case on arm - there is no Float80
Swift SVN r30072
2015-07-10 16:58:41 +00:00

17 lines
1019 B
Swift

// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: %target-swift-frontend -emit-module -parse-stdlib -o %t %S/Inputs/alias_builtin.swift
// RUN: llvm-bcanalyzer %t/alias_builtin.swiftmodule | FileCheck %s
// RUN: %target-swift-frontend -I %t -parse %s -verify
// CHECK-NOT: UnknownCode
import alias_builtin
var a : TheBuiltinInt64
// Check that it really is Builtin.Int64.
var wrapped = Int64(a) // okay
var badWrapped = Int32(a) // expected-error{{cannot find an initializer for type 'Int32' that accepts an argument list of type '(TheBuiltinInt64)'}}
// expected-note @-1 {{overloads for 'Int32' exist with these partially matching parameter lists: (Int32), (_bits: Int32), (bigEndian: Int32), (littleEndian: Int32), (_builtinIntegerLiteral: Int2048), (integerLiteral: Int32), (UInt8), (Int8), (UInt16), (Int16), (UInt32), (UInt64), (truncatingBitPattern: UInt64), (Int64), (truncatingBitPattern: Int64), (UInt), (truncatingBitPattern: UInt), (Int), (truncatingBitPattern: Int), (bitPattern: UInt32), (Float), (Double)}}