File tree Expand file tree Collapse file tree 2 files changed +72
-0
lines changed Expand file tree Collapse file tree 2 files changed +72
-0
lines changed Original file line number Diff line number Diff line change 1+ //===----------------------------------------------------------------------===//
2+ //
3+ // This source file is part of the Swift.org open source project
4+ //
5+ // Copyright (c) 2025 Apple Inc. and the Swift.org project authors
6+ // Licensed under Apache License v2.0
7+ //
8+ // See LICENSE.txt for license information
9+ // See CONTRIBUTORS.txt for the list of Swift.org project authors
10+ //
11+ // SPDX-License-Identifier: Apache-2.0
12+ //
13+ //===----------------------------------------------------------------------===//
14+
15+ package com .example .swift ;
16+
17+ import org .junit .jupiter .api .Test ;
18+ import org .swift .swiftkit .core .ConfinedSwiftMemorySession ;
19+ import org .swift .swiftkit .core .SwiftArena ;
20+
21+ import java .lang .foreign .Arena ;
22+ import java .util .Optional ;
23+ import java .util .OptionalInt ;
24+
25+ import static org .junit .jupiter .api .Assertions .*;
26+
27+ public class MultipleTypesFromSingleFileTest {
28+
29+ @ Test
30+ void bothTypesMustHaveBeenGenerated () {
31+ try (var arena = SwiftArena .ofConfined ()) {
32+ PublicTypeOne .init (arena );
33+ PublicTypeTwo .init (arena );
34+ }
35+ }
36+ }
Original file line number Diff line number Diff line change 1+ //===----------------------------------------------------------------------===//
2+ //
3+ // This source file is part of the Swift.org open source project
4+ //
5+ // Copyright (c) 2025 Apple Inc. and the Swift.org project authors
6+ // Licensed under Apache License v2.0
7+ //
8+ // See LICENSE.txt for license information
9+ // See CONTRIBUTORS.txt for the list of Swift.org project authors
10+ //
11+ // SPDX-License-Identifier: Apache-2.0
12+ //
13+ //===----------------------------------------------------------------------===//
14+
15+ package com .example .swift ;
16+
17+ import org .junit .jupiter .api .Test ;
18+ import org .swift .swiftkit .core .ConfinedSwiftMemorySession ;
19+ import org .swift .swiftkit .core .SwiftArena ;
20+
21+ import java .lang .foreign .Arena ;
22+ import java .util .Optional ;
23+ import java .util .OptionalInt ;
24+
25+ import static org .junit .jupiter .api .Assertions .*;
26+
27+ public class MultipleTypesFromSingleFileTest {
28+
29+ @ Test
30+ void bothTypesMustHaveBeenGenerated () {
31+ try (var arena = SwiftArena .ofConfined ()) {
32+ PublicTypeOne .init (arena );
33+ PublicTypeTwo .init (arena );
34+ }
35+ }
36+ }
You can’t perform that action at this time.
0 commit comments