mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[PlaygroundTransform] Replace "$builtin" with "__builtin".
Currently, the playground transform requires the use of dollar-identifiers as the functions are prefixed with "$builtin". This commit removes that requirement by replacing "$builtin" with "__builtin". This aligns with the PC macro. This addresses <rdar://problem/36031860>.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: cp %s %t/main.swift
|
||||
// RUN: %target-build-swift -Xfrontend -playground -Xfrontend -debugger-support -o %t/main %S/Inputs/PlaygroundsRuntime.swift %t/main.swift
|
||||
// RUN: %target-build-swift -Xfrontend -playground -o %t/main %S/Inputs/PlaygroundsRuntime.swift %t/main.swift
|
||||
// RUN: %target-run %t/main | %FileCheck %s
|
||||
// RUN: %target-build-swift -Xfrontend -pc-macro -Xfrontend -playground -Xfrontend -debugger-support -o %t/main %S/Inputs/PlaygroundsRuntime.swift %S/Inputs/SilentPCMacroRuntime.swift %t/main.swift
|
||||
// RUN: %target-build-swift -Xfrontend -pc-macro -Xfrontend -playground -o %t/main %S/Inputs/PlaygroundsRuntime.swift %S/Inputs/SilentPCMacroRuntime.swift %t/main.swift
|
||||
// RUN: %target-run %t/main | %FileCheck %s
|
||||
// REQUIRES: executable_test
|
||||
|
||||
@@ -15,5 +15,5 @@ struct S {
|
||||
}
|
||||
var s = [S()]
|
||||
s[0].a.append(3)
|
||||
// CHECK: [{{.*}}] $builtin_log[s='[main.S(a: [])]']
|
||||
// CHECK-NEXT: [{{.*}}] $builtin_log[a='[3])]']
|
||||
// CHECK: [{{.*}}] __builtin_log[s='[main.S(a: [])]']
|
||||
// CHECK-NEXT: [{{.*}}] __builtin_log[a='[3])]']
|
||||
|
||||
Reference in New Issue
Block a user