Debian Codegraph @

clang/test/SemaCXX/template-specialization-fatal.cpp

raw
1 // RUN: %clang_cc1 -verify -fsyntax-only %s
2 // Verify clang doesn't assert()-fail on template specialization happening after
3 // fatal error.
4
5 #include "not_found.h" // expected-error {{'not_found.h' file not found}}
6
7 template <class A, class B, class = void>
8 struct foo {};
9
10 template <class A, class B>
11 struct foo<A, B, decltype(static_cast<void (*)(B)>(0)(static_cast<A (*)()>(0)()))> {};