// RUN: %target-swift-frontend %s -emit-ir -g -o - | FileCheck %s
class C {
  func foo() {
    func bar() {
      self.foo()
    }
    // Yes, there are really two arguments called self in this example!
    // CHECK: (name: "self", arg: 1, scope: ![[SCOPE:[0-9]+]], {{.*}}line: 10,
    // CHECK: (name: "self", arg: 2, scope: ![[SCOPE]], {{.*}}line: 3,
    {[weak self] in _ = self!; bar() }()
  }
}

// RUN: %target-swift-frontend %s -emit-ir -g -o - | FileCheck %s
class C {
  func foo() {
    func bar() {
      self.foo()
    }
    // Yes, there are really two arguments calles self in this example!
    // CHECK: (name: "self", arg: 1, scope: ![[SCOPE:[0-9]+]], {{.*}}line: 10,
    // CHECK: (name: "self", arg: 2, scope: ![[SCOPE]], {{.*}}line: 3,
    {[weak self] in _ = self!; bar() }()
  }
}

--- 
+++ 
@@ -4,7 +4,7 @@
     func bar() {
       self.foo()
     }
-    // Yes, there are really two arguments calles self in this example!
+    // Yes, there are really two arguments called self in this example!
     // CHECK: (name: "self", arg: 1, scope: ![[SCOPE:[0-9]+]], {{.*}}line: 10,
     // CHECK: (name: "self", arg: 2, scope: ![[SCOPE]], {{.*}}line: 3,
     {[weak self] in _ = self!; bar() }()
[gardening] Fix recently introduced typo: "calles" → "called"
