Skip to content
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 @@ -9,12 +9,6 @@
// UNSUPPORTED: use_os_stdlib

import SwiftReflectionTest
import Darwin

private func debugLog(_ message: @autoclosure () -> String) {
fputs("Child: \(message())\n", stderr)
fflush(stderr)
}

struct StructWithEnumDepth0<T> {
enum E {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
// UNSUPPORTED: use_os_stdlib

import SwiftReflectionTest
import Darwin

private func debugLog(_ message: @autoclosure () -> String) {
fputs("Child: \(message())\n", stderr)
fflush(stderr)
}

struct StructWithEnumDepth0<T> {
enum E {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// UNSUPPORTED: use_os_stdlib

import SwiftReflectionTest
import Darwin

struct StructWithEnumDepth0<T> {
enum E {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// UNSUPPORTED: use_os_stdlib

import SwiftReflectionTest
import Darwin

struct StructWithEnumDepth0<T> {
enum E {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// UNSUPPORTED: use_os_stdlib

import SwiftReflectionTest
import Darwin

// This will always get treated as a single-payload enum
enum A<T> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

// REQUIRES: reflection_test_support
// REQUIRES: executable_test
// REQUIRES: objc_interop
// UNSUPPORTED: use_os_stdlib

import SwiftReflectionTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_Enum_SinglePayload_generic1
// RUN: %target-codesign %t/reflect_Enum_SinglePayload_generic1

// RUN: %target-run %target-swift-reflection-test %t/reflect_Enum_SinglePayload_generic1 | tee /dev/stderr | %FileCheck %s --check-prefix=CHECK --check-prefix=X%target-ptrsize --dump-input=fail
// RUN: %target-run %target-swift-reflection-test %t/reflect_Enum_SinglePayload_generic1 | tee /dev/stderr | %FileCheck %s --check-prefix=CHECK --check-prefix=X%target-ptrsize %add_num_extra_inhabitants --dump-input=fail

// REQUIRES: reflection_test_support
// REQUIRES: executable_test
Expand Down Expand Up @@ -31,7 +31,7 @@ reflect(enum: SimplePayload1<ClassTypeA>.b(ClassTypeA()))
// (Unlike MPEs, SPEs do not automatically use a tag just because they're generic)

// CHECK: Type info:
// X64-NEXT: (single_payload_enum size=8 alignment=8 stride=8 num_extra_inhabitants=2147483645 bitwise_takable=1
// X64-NEXT: (single_payload_enum size=8 alignment=8 stride=8 num_extra_inhabitants=[[#num_extra_inhabitants_64bit-2]] bitwise_takable=1
// X32-NEXT: (single_payload_enum size=4 alignment=4 stride=4 num_extra_inhabitants={{[0-9]+}} bitwise_takable=1
// CHECK-NEXT: (case name=b index=0 offset=0
// CHECK-NEXT: (reference kind=strong refcounting=native))
Expand Down