<commit_before>// RUN: %empty-directory(%t)
// RUN: mkdir -p %t/Frameworks/lib.framework/Modules/lib.swiftmodule
// RUN: mkdir -p %t/Frameworks/lib2.framework/Modules/lib2.swiftmodule
// RUN: split-file %s %t

// RUN: %target-swift-frontend -emit-module -emit-module-source-info -module-name lib2 -o %t/Frameworks/lib2.framework/Modules/lib2.swiftmodule/%module-target-triple.swiftmodule %t/lib2.swift -disable-experimental-string-processing
// RUN: %target-swift-frontend -emit-module -emit-module-source-info -module-name lib -o %t/Frameworks/lib.framework/Modules/lib.swiftmodule/%module-target-triple.swiftmodule %t/lib.swift -Fsystem %t/Frameworks -disable-experimental-string-processing

// RUN: %target-swift-frontend -typecheck -index-system-modules -index-ignore-stdlib -index-store-path %t/idx -Fsystem %t/Frameworks %t/main.swift -disable-deserialization-recovery -disable-experimental-string-processing

//--- main.swift
import lib

//--- lib.swift
@_implementationOnly import lib2

struct InternalS {
  func structFunc(p: Lib2S) {}
}

extension InternalS {
  func extensionFunc(p: Lib2S) {}
}

//--- lib2.swift
public struct Lib2S {}
<commit_msg>[Test] Avoid unexpected deserialization failure in skip-loaded-internal.swift<commit_after>// RUN: %empty-directory(%t)
// RUN: mkdir -p %t/Frameworks/lib.framework/Modules/lib.swiftmodule
// RUN: mkdir -p %t/Frameworks/lib2.framework/Modules/lib2.swiftmodule
// RUN: split-file %s %t

// RUN: %target-swift-frontend -emit-module -emit-module-source-info -module-name lib2 -o %t/Frameworks/lib2.framework/Modules/lib2.swiftmodule/%module-target-triple.swiftmodule %t/lib2.swift -disable-experimental-string-processing -parse-stdlib
// RUN: %target-swift-frontend -emit-module -emit-module-source-info -module-name lib -o %t/Frameworks/lib.framework/Modules/lib.swiftmodule/%module-target-triple.swiftmodule %t/lib.swift -Fsystem %t/Frameworks -disable-experimental-string-processing -parse-stdlib

// RUN: %target-swift-frontend -typecheck -index-system-modules -index-ignore-stdlib -index-store-path %t/idx -Fsystem %t/Frameworks %t/main.swift -disable-deserialization-recovery -disable-experimental-string-processing -parse-stdlib

//--- main.swift
import lib

//--- lib.swift
@_implementationOnly import lib2

struct InternalS {
  func structFunc(p: Lib2S) {}
}

extension InternalS {
  func extensionFunc(p: Lib2S) {}
}

//--- lib2.swift
public struct Lib2S {}

{'fraction_non_alphanumeric': 0.14975247524752475, 'fraction_numerical': 0.009075907590759076, 'mean_word_length': 4.1705756929637525, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4213093', 'n_tokens_mistral': 853, 'n_tokens_neox': 801, 'n_words': 149}