xref: /llvm-project/clang/test/SemaTemplate/instantiate-explicitly-after-fatal.cpp (revision 5eb6039f160db9e236bcb83c3bf897c4fe87bd9e)
1 // RUN: not %clang_cc1 -fsyntax-only -std=c++11 -ferror-limit 1 %s 2>&1 | FileCheck %s
2 unknown_type foo(unknown_type);
3 // CHECK: fatal error: too many errors emitted, stopping now
4 
5 template <typename>
6 class Bar {};
7 
8 extern template class Bar<int>;
9 template class Bar<int>;
10