mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
...which is consistent with other library functions return size_t. But
don't break compatibility with Swift 3.
("Builtins" are functions that Clang has, well, built-in knowledge
about, and whose declarations can therefore be produced directly in
the compiler. This bypassed some of our checking for special typedefs
like size_t. We discovered this when 'wcslen' got added as a new
built-in in the Swift 4 timeframe.)
rdar://problem/30545505
10 lines
318 B
Swift
10 lines
318 B
Swift
// Note: this test intentionally uses a private module cache.
|
|
//
|
|
// RUN: rm -rf %t/clang-module-cache
|
|
// RUN: %target-swift-frontend -typecheck -verify -module-cache-path %t/clang-module-cache %s
|
|
// RUN: ls -lR %t/clang-module-cache | %FileCheck %s
|
|
|
|
// CHECK: _Builtin_intrinsics{{.*}}.pcm
|
|
|
|
import _Builtin_intrinsics
|