mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The only member that's currently exposed is the default initializer, everything else is in extensions
20 lines
866 B
Swift
20 lines
866 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend -parse-as-library %platform-module-dir/Swift.swiftmodule/%module-target-triple.swiftinterface -enable-library-evolution -disable-objc-attr-requires-foundation-module -typecheck -module-name Swift -parse-stdlib -enable-experimental-cxx-interop -emit-clang-header-path %t/Swift.h -experimental-skip-all-function-bodies
|
|
// RUN: %FileCheck %s < %t/Swift.h
|
|
|
|
// RUN: %check-interop-cxx-header-in-clang(%t/Swift.h -Wno-unused-private-field -Wno-unused-function)
|
|
|
|
// CHECK: namespace Swift {
|
|
|
|
// CHECK: class String final {
|
|
// CHECK-NEXT: public:
|
|
// CHECK-NEXT: inline ~String() {
|
|
// CHECK: }
|
|
// CHECK-NEXT: inline String(const String &other) {
|
|
// CHECK: }
|
|
// CHECK-NEXT: inline String(String &&) = default;
|
|
// CHECK-NEXT: static inline String init();
|
|
// CHECK-NEXT: private:
|
|
|
|
// CHECK: } // namespace Swift
|