1 // RUN: not %clang_cc1 -std=c++17 -fsyntax-only -ferror-limit 1 %s 2>&1 | FileCheck %s
2 
3 #error Error 1
4 #error Error 2
5 // CHECK: fatal error: too many errors emitted, stopping now
6 
7 namespace rdar39051732 {
8 
9   template<class T> struct A {
10     template <class U> A(T&, ...);
11   };
12   // Deduction guide triggers constructor instantiation.
13   template<class T> A(const T&, const T&) -> A<T&>;
14 
15 }
16 
17