Files
swift-mirror/test/IRGen/decls.swift
Chris Lattner e4b6afb9ae Start moving the testsuite to the "_ = foo()" idiom for evaluating an
expression but ignoring its value.  This is the right canonical way to do
this.  NFC, just testsuite changes.



Swift SVN r28638
2015-05-15 20:15:54 +00:00

26 lines
500 B
Swift

// RUN: %target-swift-frontend %s -emit-ir | FileCheck %s
// Check that we emit all local decls, not just the first one.
func test1() {
class a {
var x, y : Int
init() {
x = 0
y = 0
}
}
class b {
var a, b : Int
init() {
a = 0
b = 0
}
}
let x : a, y : b
}
// Check that we emit nominal type descriptors for all types.
// CHECK-DAG: @_TMnCF5decls5test1FT_T_L_1a = hidden constant
// CHECK-DAG: @_TMnCF5decls5test1FT_T_L_1b = hidden constant