Files
swift-mirror/test/Driver/print_target_info_unicode.swift
Artem Chikin 57518b5894 Do not escape UNICODE when writing out target info.
Escaping unicode characters results in invalid JSON.

- Refactor writeEscaped routine into StringExtras

Resolves rdar://90108531
2022-03-16 15:30:21 -07:00

6 lines
400 B
Swift

// RUN: %target-swift-frontend -print-target-info -target arm64-apple-ios12.0 -sdk /Applications🙉/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk | %FileCheck %s
// CHECK: "target": {
// CHECK-NEXT: "triple": "arm64-apple-ios12.0",
// CHECK: "sdkPath": "/Applications🙉/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk",