| // RUN: %empty-directory(%t) |
| // RUN: cp %s %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 -o %t/main %S/Inputs/PlaygroundsRuntime.swift %S/Inputs/SilentPCMacroRuntime.swift %t/main.swift |
| // RUN: %target-run %t/main | %FileCheck %s |
| // REQUIRES: executable_test |
| |
| var a = 2 |
| var b = 3 |
| a + b |
| // CHECK: [{{.*}}] __builtin_log[a='2'] |
| // CHECK-NEXT: [{{.*}}] __builtin_log[b='3'] |
| // CHECK-NEXT: [{{.*}}] __builtin_log[='5'] |