Files
swift-mirror/test/PlaygroundTransform/for_crash.swift
Maxwell Swadling 214efbfc3c Added a new AST Walker that instruments the AST to provide callbacks that simulate a program counter
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.
2016-12-19 10:56:40 -08:00

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
}