blob: a53cedc4070a333633e773935c9fb8ecc2eeb156 [file] [log] [blame]
// RUN: %target-swift-frontend %s -Onone -emit-ir -g -o - | %FileCheck %s
public class C<T>
{
func c(_ i : T)
{
// Ensure that the type metadata for T is eagerly loaded at -Onone.
// CHECK: define {{.*}}17EagerTypeMetadata1C1c
// CHECK: %T = load %swift.type*, %swift.type**
// CHECK-SAME: !dbg ![[LOC:[0-9]+]], !invariant.load
// CHECK: ![[LOC]] = !DILocation(line: 0,
var x = [i]
}
}