xref: /aosp_15_r20/external/clang/test/SemaTemplate/instantiate-explicitly-after-fatal.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
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