summaryrefslogtreecommitdiffstats
path: root/test/SemaTemplate/instantiate-explicitly-after-fatal.cpp
blob: 9693d2fc6c059bad1219e6569aaf043007cbb42c (plain)
1
2
3
4
5
6
7
8
9
// RUN: not %clang_cc1 -fsyntax-only -std=c++11 -ferror-limit 1 %s 2>&1 | FileCheck %s
unknown_type foo(unknown_type);
// CHECK: fatal error: too many errors emitted, stopping now

template <typename>
class Bar {};

extern template class Bar<int>;
template class Bar<int>;