Files
swift-mirror/test/DebugInfo/Constructors.swift
Adrian Prantl be3ba262b5 Debug info: Emit the human-readable name of a constructor as "constructor".
rdar://problem/14583186

Swift SVN r6748
2013-07-30 20:05:51 +00:00

11 lines
243 B
Swift

// RUN: %swift -triple x86_64-apple-darwin10 %s -emit-llvm -g -o - | FileCheck %s
struct Foo {
// CHECK: [ DW_TAG_subprogram ] [line [[@LINE+1]]] [def] [constructor]
constructor (x : Int) {}
func bar (x : Int) {}
}
var f = Foo(1)
f.bar(2)