Revision d9b2fe601b793741633d77606c4618e63612fbb2 authored by Chris Lattner on 10 January 2016, 04:17:56 UTC, committed by Chris Lattner on 10 January 2016, 04:17:56 UTC
1 parent 0fbbf59
Raw File
Constructors.swift
// RUN: %target-swift-frontend %s -emit-ir -g -o - | FileCheck %s
struct Foo {
  // Allocating constructor - should have no line table info.
  // CHECK: !DISubprogram(name: "init", linkageName: "_TFV12Constructors3FooCfT1xVs5Int64_S0_",
  // CHECK-SAME:          line: [[@LINE+3]]
  // CHECK-NOT:           scopeLine: 0
  // CHECK-SAME:          isDefinition: true
  init(x: Int64) {}
  func bar(x: Int64) {}
}

var f = Foo(x: 1)
f.bar(2)
back to top