blob: 3e0ddf1ae60fbfd07534862e3129a42a50a3a120 [file] [log] [blame]
Volodymyr Sapsai2f649f32018-05-14 22:49:44 +00001// 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
7namespace 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