Skip to content

Commit 0778b02

Browse files
committed
Fixed unit tests
1 parent 2618f27 commit 0778b02

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#import <Foundation/Foundation.h>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// empty
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#import <Foundation/Foundation.h>
1+
#import "FakeFoundation.h"
22

33
@interface Data
44
@end

test/Constraints/invalid_decl_ref.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
// RUN: %target-swift-frontend -module-name SomeModule -typecheck -verify -dump-ast -import-objc-header %S/Inputs/imported_type.h %s | %FileCheck %s
1+
// RUN: %empty-directory(%t)
2+
// RUN: %target-swift-frontend -emit-module -emit-module-path %t/FakeFoundation.swiftmodule -module-name FakeFoundation %S/Inputs/FakeFoundation.swift -import-objc-header %S/Inputs/FakeFoundation.h -disable-availability-checking
23

34
// REQUIRES: objc_interop
45

5-
import Foundation
6+
import FakeFoundation
67

78
// CHECK: declref_expr type='module<SomeModule>'
89
// CHECK-NEXT: type_expr type='Data.Type'

test/Frontend/foundation-module-shadowing.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// REQUIRES: objc_interop
12
// RUN: %empty-directory(%t)
23
// RUN: %target-swift-frontend -emit-module -emit-module-path %t/ShadowFoundation.swiftmodule -module-name ShadowFoundation %S/Inputs/ShadowFoundation.swift -disable-availability-checking
34
// RUN: %target-typecheck-verify-swift -I %t -disable-availability-checking

0 commit comments

Comments
 (0)