mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
<rdar://problem/15849532> iteration variables in "for X in Y" statements don't have debug information Swift SVN r12675
14 lines
411 B
Swift
14 lines
411 B
Swift
// RUN: %swift -triple x86_64-apple-darwin %s -emit-llvm -g -o - | FileCheck %s
|
|
var puzzleInput = "great minds think alike"
|
|
var puzzleOutput = ""
|
|
for letter in puzzleInput.chars {
|
|
// CHECK: [ DW_TAG_auto_variable ] [letter] [line [[@LINE-1]]]
|
|
switch letter {
|
|
case 'a', 'e', 'i', 'o', 'u', ' ':
|
|
continue
|
|
default:
|
|
puzzleOutput += letter
|
|
}
|
|
}
|
|
println(puzzleOutput)
|