mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Most of the changes fall into a few categories: * Replace explicit "x86_64" with %target-cpu in lit tests * Cope with architecture differences in IR/asm/etc. macOS-specific tests
13 lines
583 B
Swift
13 lines
583 B
Swift
// REQUIRES: OS=macosx
|
|
|
|
var p: CoolInt
|
|
|
|
// RUN: %empty-directory(%t)
|
|
// RUN: %empty-directory(%t/custom-resource-dir/macosx/Swift.swiftmodule)
|
|
|
|
// RUN: %target-swift-frontend -emit-module -module-name Swift -parse-stdlib -target %target-cpu-apple-macosx10.12 %S/Inputs/custom-resource-stdlib.swift -o %t/custom-resource-dir/macosx/Swift.swiftmodule/%target-swiftmodule-name
|
|
// RUN: %sourcekitd-test -req=cursor -pos=3:8 %s -- -resource-dir %t/custom-resource-dir -target %target-cpu-apple-macosx10.12 %s | %FileCheck %s
|
|
|
|
// CHECK: source.lang.swift.ref.struct
|
|
// CHECK-NEXT: CoolInt
|