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