Files
swift-mirror/test/SourceKit/Misc/resource-dir-handling.swift
Mishal Shah 92ca9fc924 [Apple Silicon] Generalize tests for other macOS architectures
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
2020-07-02 16:27:46 -07:00

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