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
devirtualize1.swift
// RUN: %target-swift-frontend %s -O -emit-sil | FileCheck %s

class Bar<T> {
  var m_x : Int
  init(x : Int) { m_x = x }
  func ping() { print(m_x, terminator: "")}
}

//CHECK: function_with_interesting_stuff
//CHECK-NOT: class_method
//CHECK: return 
func function_with_interesting_stuff() {
  var x = Bar<Int>(x: 3)
  x.ping()
}


back to top