Clang Project

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