blob: 0c6320d6cd87644a52e3503d93a9ff0b449be1b0 [file] [log] [blame]
// 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-codesign %t/main
// RUN: %target-run %t/main | %FileCheck %s
// RUN: %target-build-swift -Xfrontend -pc-macro -Xfrontend -playground -o %t/main2 %S/Inputs/PlaygroundsRuntime.swift %S/Inputs/SilentPCMacroRuntime.swift %t/main.swift
// RUN: %target-codesign %t/main2
// RUN: %target-run %t/main2 | %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']