mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
2b8ee6e5a2
This ensures that we use the correct llvm-bcanalyzer from the just built compiler tools.
15 lines
512 B
Swift
15 lines
512 B
Swift
// RUN: %empty-directory(%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 -typecheck %s -verify -verify-ignore-unrelated
|
|
|
|
// 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{{no exact matches in call to initializer}}
|