mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Based off the PlaygroundTransform, this new ASTWalker leaves calls to __builtin_pc_before and __builtin_pc_after before and after a user would expect a program counter to enter a range of source code.
9 lines
246 B
Swift
9 lines
246 B
Swift
// RUN: rm -rf %t && mkdir -p %t
|
|
// RUN: cp %s %t/main.swift
|
|
// RUN: not %target-swift-frontend -typecheck -playground %t/main.swift
|
|
// RUN: not %target-swift-frontend -typecheck -playground -Xfrontend -pc-macro %t/main.swift
|
|
|
|
for x in y {
|
|
x
|
|
}
|