Files
swift-mirror/test/DebugInfo/test_ints.swift
Duncan Exon Smith c6d42db070 Adapt to MD* => DI* renaming of debug info types
Applied the upgrade script from r236120 (LLVM) and r236121 (CFE).  This is the
final step of rdar://problem/20434113.



Swift SVN r27925
2015-04-29 21:40:21 +00:00

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