Files
swift-mirror/test/ClangImporter/clang_builtin_pcm.swift
Jordan Rose cb8dbd9c5c [ClangImporter] Import builtins returning size_t as returning Int. (#9753)
...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
2017-05-19 18:50:38 -07:00

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