// RUN: %target-typecheck-verify-swift %s

class C {
  private init() {} // expected-note {{declared here}}
  init(n: Int) {}
}

_ = C()
// expected-error@-1 {{'C' initializer is inaccessible due to 'private' protection level}}

// RUN: not %target-swift-frontend %s -typecheck

class C {
  private init() {} // expected-error {{declared here}}
  init(n: Int) {}
}

_ = C()
// expected-error@-1 {{'C' initializer is inaccessible due to 'private' protection level}}

--- 
+++ 
@@ -1,7 +1,7 @@
-// RUN: not %target-swift-frontend %s -typecheck
+// RUN: %target-typecheck-verify-swift %s
 
 class C {
-  private init() {} // expected-error {{declared here}}
+  private init() {} // expected-note {{declared here}}
   init(n: Int) {}
 }
 
Switch test from 'not ...' to positive test with the correct verify check.
