   final var A : [[Int]]
   init() { A = [] }
 
-// CHECK-LABEL: COW Array Opts in Func {{.*}}hoist2DArrayInClass
-// CHECK: Hoisting make_mutable
-// CHECK: COW Array Opts
+// TEST9-LABEL: COW Array Opts in Func {{.*}}hoist2DArrayInClass
+// TEST9: Hoisting make_mutable
+// TEST9: COW Array Opts
 
   func hoist2DArrayInClass() {
     for i in 0 ..< 10 {

// RUN: %target-swift-frontend -O -emit-sil -Xllvm -debug-only=cowarray-opts -primary-file %s 2>&1 | FileCheck %s
// REQUIRES: rdar://23681223
// asserts,swift_stdlib_no_asserts,optimized_stdlib

// CHECK-LABEL: COW Array Opts in Func {{.*}}inoutarr{{.*}}
// CHECK: Hoisting make_mutable
// CHECK: COW Array Opts
func inoutarr(inout a: [Int]) {
  for i in 0..<a.count {
    a[i] = 0

  var rows : Int
}

// TEST6-LABEL: COW Array Opts in Func {{.*}}test2DArrayLoop{{.*}}
// TEST6:        Array Opts in Loop Loop at depth 2
// TEST6-NOT:   COW Array Opts in
// TEST6:        Hoisting make_mutable
// TEST6:        Array Opts in Loop Loop at depth 1
// TEST6-NOT:   COW Array Opts in
// TEST6:        Hoisting make_mutable
// TEST6:   COW Array Opts in

func test2DArrayLoop(inout A : Array2d) {
  for r in 0 ..< A.rows {
