mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
18 lines
396 B
Swift
18 lines
396 B
Swift
// RUN: %target-swift-frontend -primary-file %s -emit-ir | %FileCheck %s
|
|
|
|
// REQUIRES: CPU=x86_64
|
|
|
|
class Foobar {
|
|
init() {
|
|
var a : Bool = true
|
|
}
|
|
}
|
|
|
|
// Make sure we are mis-initializing the alloca.
|
|
// CHECK-LABEL: define {{.*}}swiftcc ptr @"$s11alloc_stack6FoobarCACycfc"(ptr swiftself %0)
|
|
// CHECK: alloca %TSb, align 1
|
|
// CHECK-NOT: store{{.*}}opaque
|
|
// CHECK: ret {{.*}}%0
|
|
// CHECK:}
|
|
|