mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The order in which the metadata nodes are output differs when compiling against a debug stdlib. <rdar://problem/29867213>
13 lines
502 B
Swift
13 lines
502 B
Swift
// RUN: %target-swift-frontend -g -emit-ir %s | %FileCheck %s
|
|
|
|
// Verify that variables bound in the foreach statements are in distinct scopes.
|
|
let values = [1, 2, 3]
|
|
// CHECK-DAG: ![[SCOPE1:[0-9]+]] ={{.*}}Block(scope: ![[MAIN:[0-9]+]],{{.*}}line: 7,
|
|
// CHECK-DAG: ![[SCOPE2:[0-9]+]] ={{.*}}Block(scope: ![[MAIN]], {{.*}}line: 10,
|
|
for val in values {
|
|
// CHECK-DAG: !DILocalVariable(name: "val", scope: ![[SCOPE1]]
|
|
}
|
|
for val in values {
|
|
// CHECK-DAG: !DILocalVariable(name: "val", scope: ![[SCOPE2]]
|
|
}
|