[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git] / clang / test / SemaCXX / template-specialization-fatal.cpp
blob2191e54c8f1624764b6a56a66e18c0d83cf513dc
1 // RUN: %clang_cc1 -verify -fsyntax-only %s
2 // Verify clang doesn't assert()-fail on template specialization happening after
3 // fatal error.
5 #include "not_found.h" // expected-error {{'not_found.h' file not found}}
7 template <class A, class B, class = void>
8 struct foo {};
10 template <class A, class B>
11 struct foo<A, B, decltype(static_cast<void (*)(B)>(0)(static_cast<A (*)()>(0)()))> {};