mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
All enum elments should have been handled separately so we don't need to anything special for EnumCaseDecl except consuming them.
15 lines
732 B
Swift
15 lines
732 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %empty-directory(%t/Foo.swiftmodule)
|
|
// RUN: %empty-directory(%t/ResourceDir/%target-sdk-name/prebuilt-modules/Foo.swiftmodule)
|
|
// RUN: echo "public func foo() {}" > %t/Foo.swift
|
|
// RUN: echo "public enum DisplayStyle { case tuple, optional, collection }" > %t/Foo.swift
|
|
|
|
// RUN: %target-swift-frontend -emit-module %t/Foo.swift -module-name Foo -emit-module-interface-path %t/Foo.swiftinterface
|
|
// RUN: %target-swift-frontend -compile-module-from-interface %t/Foo.swiftinterface -o %t/Foo.swiftmodule -module-name Foo -emit-abi-descriptor-path %t/Foo.json
|
|
|
|
// RUN: %FileCheck %s < %t/Foo.json
|
|
|
|
// CHECK: "kind": "Root"
|
|
// CHECK-NEXT: "name": "TopLevel"
|
|
// CHECK-NEXT: "printedName": "TopLevel"
|