mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Applied the upgrade script from r236120 (LLVM) and r236121 (CFE). This is the final step of rdar://problem/20434113. Swift SVN r27925
17 lines
608 B
Swift
17 lines
608 B
Swift
// RUN: %target-swift-frontend %s -emit-ir -g -o - | FileCheck %s
|
|
|
|
// These two should not have the same type.
|
|
// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "Int64"
|
|
// CHECK-SAME: size: 64, align: 64
|
|
// CHECK-NOT: offset: 0
|
|
// CHECK-NOT: DIFlagFwdDecl
|
|
// CHECK-SAME: identifier: "_TtVSs5Int64"
|
|
// CHECK: !DIGlobalVariable(name: "a",{{.*}} line: [[@LINE+2]]
|
|
// CHECK-SAME: type: !"_TtVSs5Int64"
|
|
var a : Int64 = 2
|
|
|
|
// CHECK: !DIGlobalVariable(name: "b",{{.*}} line: [[@LINE+2]]
|
|
// CHECK-SAME: type: !"_TtSi"
|
|
var b = 2
|
|
|