Skip to content

Fix and temporarily disable tests for rebranch #62233

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Dec 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// conflicting debug variable type

// CHECK-LABEL: define internal swiftcc float @"$s4main8TestTypeV24doDifferentiableTimeStep04timeG0ySf_tFTJpSSpSrTA"
// CHECK: [[SELF:%.*]] = alloca %T4main8TestTypeV06ManualB7TangentV, align 4
// CHECK: [[SELF:%.*]] = alloca %T4main8TestTypeV06ManualB7TangentV
// CHECK: call void @llvm.dbg.declare(metadata %T4main8TestTypeV06ManualB7TangentV* [[SELF]]

import _Differentiation
Expand Down
2 changes: 2 additions & 0 deletions test/DebugInfo/async-args.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// RUN: -parse-as-library | %FileCheck %s
// REQUIRES: concurrency

// REQUIRES: rdar102151684

func use<T>(_ t: T) {}
func forceSplit() async {
}
Expand Down
2 changes: 2 additions & 0 deletions test/DebugInfo/async-lifetime-extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// RUN: | %FileCheck %s --check-prefix=CHECK
// REQUIRES: concurrency

// REQUIRES: rdar102151684

// Test that lifetime extension preserves a dbg.declare for "n" in the resume
// funclet.

Expand Down
2 changes: 2 additions & 0 deletions test/DebugInfo/line-directive.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// REQUIRES: rdar102151684

func markUsed<T>(_ t: T) {}
func f() {
if 1==1 {
Expand Down
2 changes: 2 additions & 0 deletions test/IDE/print_clang_header.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// FIXME: rdar://problem/19648117 Needs splitting objc parts out
// REQUIRES: objc_interop

// REQUIRES: rdar102151774

// RUN: echo '#include "header-to-print.h"' > %t.m
// RUN: %target-swift-ide-test(mock-sdk: %clang-importer-sdk) -source-filename %s -print-header -header-to-print %S/Inputs/print_clang_header/header-to-print.h -print-regular-comments -enable-objc-interop -disable-objc-attr-requires-foundation-module --cc-args %target-cc-options -isysroot %clang-importer-sdk-path -fsyntax-only %t.m -I %S/Inputs/print_clang_header > %t.txt
// RUN: diff -u %S/Inputs/print_clang_header/header-to-print.h.printed.txt %t.txt
Expand Down
6 changes: 3 additions & 3 deletions test/IRGen/generic_classes.sil
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// RUN: %target-swift-frontend %t/generic_classes.sil -emit-ir -disable-objc-interop | %FileCheck %t/generic_classes.sil --check-prefixes=CHECK,CHECK-native,CHECK-%target-import-type
// RUN: %target-swift-frontend -Osize %t/generic_classes.sil -emit-ir | %FileCheck %t/generic_classes.sil --check-prefix=OSIZE

// REQUIRES: CPU=x86_64
// REQUIRES: PTRSIZE=64

import Builtin
import Swift
Expand Down Expand Up @@ -54,7 +54,7 @@ import Swift
// -- ivar destroyer
// CHECK-SAME: i32 0,
// -- flags
// CHECK_SAME: i32 3,
// CHECK-SAME: i32 2,
// -- immediate pattern size
// CHECK-native-SAME: i16 0,
// CHECK-objc-SAME: i16 5,
Expand Down Expand Up @@ -133,7 +133,7 @@ import Swift
// -- ivar destroyer
// CHECK-SAME: i32 0,
// -- class flags
// CHECK_SAME: i32 3,
// CHECK-SAME: i32 2,
// -- extra data pattern offset
// CHECK-objc-SAME: i16 5,
// -- extra data pattern size
Expand Down
6 changes: 3 additions & 3 deletions test/IRGen/objc_subclass.swift
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,10 @@
// CHECK-64: ] }


// CHECK: @"objc_classes_$s13objc_subclass10SwiftGizmoCN" = internal global i8* bitcast (%swift.type* @"$s13objc_subclass10SwiftGizmoCN" to i8*), section "__DATA,__objc_classlist,regular,no_dead_strip", align [[WORD_SIZE_IN_BYTES]]
// CHECK: @"objc_classes_$s13objc_subclass11SwiftGizmo2CN" = internal global i8* bitcast (%swift.type* @"$s13objc_subclass11SwiftGizmo2CN" to i8*), section "__DATA,__objc_classlist,regular,no_dead_strip", align [[WORD_SIZE_IN_BYTES]]
// CHECK: @"objc_classes_$s13objc_subclass10SwiftGizmoCN" = internal global i8* bitcast (%swift.type* @"$s13objc_subclass10SwiftGizmoCN" to i8*), section "__DATA,__objc_classlist,regular,no_dead_strip", no_sanitize_address, align [[WORD_SIZE_IN_BYTES]]
// CHECK: @"objc_classes_$s13objc_subclass11SwiftGizmo2CN" = internal global i8* bitcast (%swift.type* @"$s13objc_subclass11SwiftGizmo2CN" to i8*), section "__DATA,__objc_classlist,regular,no_dead_strip", no_sanitize_address, align [[WORD_SIZE_IN_BYTES]]

// CHECK: @objc_non_lazy_classes = internal global [1 x i8*] [i8* bitcast (%swift.type* @"$s13objc_subclass11SwiftGizmo2CN" to i8*)], section "__DATA,__objc_nlclslist,regular,no_dead_strip", align [[WORD_SIZE_IN_BYTES]]
// CHECK: @objc_non_lazy_classes = internal global [1 x i8*] [i8* bitcast (%swift.type* @"$s13objc_subclass11SwiftGizmo2CN" to i8*)], section "__DATA,__objc_nlclslist,regular,no_dead_strip", no_sanitize_address, align [[WORD_SIZE_IN_BYTES]]

import Foundation
import gizmo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

// REQUIRES: objc_interop

// REQUIRES: rdar102858524

import CenumsNSOptions

// CHECK-NOT: warning: imported declaration 'API_NOTES_NAMED_OptionOne' could not be mapped to 'SwiftOptionOneApiNotes'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

// REQUIRES: objc_interop

// REQUIRES: rdar102858524

import CenumsNSOptions

// CHECK-NOT: warning: imported declaration 'NS_SWIFT_NAMED_OptionOne' could not be mapped to 'SwiftOptionOne'
Expand Down
1 change: 1 addition & 0 deletions test/PrintAsObjC/availability-real-sdk.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
// CHECK-NEXT: - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull){{[a-zA-Z]+}} OBJC_DESIGNATED_INITIALIZER;
// CHECK-NEXT: @end

// REQUIRES: rdar102629628

import Foundation

Expand Down
2 changes: 2 additions & 0 deletions test/PrintAsObjC/override.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

// REQUIRES: objc_interop

// REQUIRES: rdar102629628

import OverrideBase
// No errors from Clang until we get to the FixMe class.
// CLANG-NOT: error
Expand Down