mirror of
https://github.com/apple/swift.git
synced 2026-10-04 11:58:22 +02:00
None of these tests use an availability gated language feature or standard library API at the deployment target they compile with, so the flag suppresses no diagnostics. Remove it rather than replacing it with a deployment target. Verified by running each test with the flag removed. The one exception is attr_target_x86_64.swift, which only runs on x86_64 hosts; its arm64 twin, attr_target_arm64.swift, is verified and the two differ only in the CPU features they name.
48 lines
1.6 KiB
Swift
48 lines
1.6 KiB
Swift
// REQUIRES: swift_swift_parser
|
|
|
|
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -typecheck -plugin-path %swift-plugin-dir -dump-macro-expansions > %t/expansions-dump.txt 2>&1
|
|
// RUN: %FileCheck %s < %t/expansions-dump.txt
|
|
|
|
@DebugDescription
|
|
struct MyStruct: CustomDebugStringConvertible {
|
|
var debugDescription: String { "thirty" }
|
|
}
|
|
// CHECK: static let _lldb_summary: (
|
|
// CHECK: {{UInt8(, UInt8)*}}
|
|
// CHECK: ) =
|
|
// CHECK: (
|
|
// CHECK: /* version */ 1,
|
|
// CHECK: /* record size */ 23,
|
|
// CHECK: /* "main.MyStruct" */ 14, 109, 97, 105, 110, 46, 77, 121, 83, 116, 114, 117, 99, 116, 0,
|
|
// CHECK: /* "thirty" */ 7, 116, 104, 105, 114, 116, 121, 0
|
|
// CHECK: )
|
|
|
|
@DebugDescription
|
|
class MyClass: CustomDebugStringConvertible {
|
|
var debugDescription: String { "thirty" }
|
|
}
|
|
// CHECK: static let _lldb_summary: (
|
|
// CHECK: {{UInt8(, UInt8)*}}
|
|
// CHECK: ) =
|
|
// CHECK: (
|
|
// CHECK: /* version */ 1,
|
|
// CHECK: /* record size */ 22,
|
|
// CHECK: /* "main.MyClass" */ 13, 109, 97, 105, 110, 46, 77, 121, 67, 108, 97, 115, 115, 0,
|
|
// CHECK: /* "thirty" */ 7, 116, 104, 105, 114, 116, 121, 0
|
|
// CHECK: )
|
|
|
|
@DebugDescription
|
|
class MyEnum: CustomDebugStringConvertible {
|
|
var debugDescription: String { "thirty" }
|
|
}
|
|
// CHECK: static let _lldb_summary: (
|
|
// CHECK: {{UInt8(, UInt8)*}}
|
|
// CHECK: ) =
|
|
// CHECK: (
|
|
// CHECK: /* version */ 1,
|
|
// CHECK: /* record size */ 21,
|
|
// CHECK: /* "main.MyEnum" */ 12, 109, 97, 105, 110, 46, 77, 121, 69, 110, 117, 109, 0,
|
|
// CHECK: /* "thirty" */ 7, 116, 104, 105, 114, 116, 121, 0
|
|
// CHECK: )
|