brintos

brintos / llvm-project-archived public Read only

0
0
Text · 390 B · 3e0ddf1 Raw
17 lines · cpp
1// RUN: not %clang_cc1 -std=c++17 -fsyntax-only -ferror-limit 1 %s 2>&1 | FileCheck %s2 3#error Error 14#error Error 25// CHECK: fatal error: too many errors emitted, stopping now6 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 17