mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Most tests were using %swift or similar substitutions, which did not include the target triple and SDK. The driver was defaulting to the host OS. Thus, we could not run the tests when the standard library was not built for OS X. Swift SVN r24504
19 lines
645 B
Swift
19 lines
645 B
Swift
// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=BUILTIN_1 | FileCheck %s -check-prefix=NO_CRASH
|
|
// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=BUILTIN_2 | FileCheck %s -check-prefix=NO_CRASH
|
|
|
|
// NO_CRASH-NOT: Begin completions
|
|
|
|
//===---
|
|
//===--- Test code completion for types from Builtin module.
|
|
//===---
|
|
|
|
// We don't give any useful completions, but we should not crash either.
|
|
|
|
func testBuiltinRawPointer1(a: UnsafeMutablePointer<UInt8>) {
|
|
a.value#^BUILTIN_1^#
|
|
}
|
|
|
|
func testBuiltinRawPointer2(a: UnsafeMutablePointer<UInt8>) {
|
|
a.value.#^BUILTIN_2^#
|
|
}
|