bolt/deps/llvm-18.1.8/clang/test/SemaTemplate/instantiate-explicitly-after-fatal.cpp
2025-02-14 19:21:04 +01:00

9 lines
273 B
C++

// 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>;