mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
19 lines
770 B
Swift
19 lines
770 B
Swift
// Test the fallback for 32-bit ARM platforms.
|
|
|
|
// RUN: %empty-directory(%t)
|
|
// RUN: mkdir %t/empty.swiftmodule
|
|
// RUN: %target-swift-frontend -emit-module -o %t/empty.swiftmodule/arm.swiftmodule %S/../Inputs/empty.swift -module-name empty
|
|
// RUN: %target-swift-frontend -typecheck %s -I %t
|
|
|
|
// RUN: mv %t/empty.swiftmodule/arm.swiftmodule %t/empty.swiftmodule/%target-swiftmodule-name
|
|
// RUN: touch %t/empty.swiftmodule/arm.swiftmodule
|
|
// RUN: %target-swift-frontend -typecheck %s -I %t
|
|
|
|
// RUN: rm %t/empty.swiftmodule/%target-swiftmodule-name
|
|
// RUN: not %target-swift-frontend -typecheck %s -I %t 2>&1 | %FileCheck %s
|
|
|
|
// REQUIRES: CPU=armv7 || CPU=armv7k || CPU=armv7s
|
|
|
|
import empty
|
|
// CHECK: :[[@LINE-1]]:8: error: malformed compiled module: {{.*}}arm.swiftmodule
|