blob: d94f697fdca95974a1478121a2fb3097f1868ef3 [file] [log] [blame]
// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: %target-swift-frontend -emit-module -o %t %S/Inputs/def_structA.swift
// RUN: %target-swift-frontend -emit-silgen -module-name ext_structA -I %t %s | FileCheck %s
import def_structA
extension A {
mutating func test() {
a = 1
}
}
func markUsed<T>(t: T) {}
// CHECK-LABEL: sil hidden @_TFE11ext_structAV11def_structA1A4testfT_T_
var ao = A()
markUsed(ao.test())