xref: /llvm-project/clang/test/SemaCXX/undefined-partial-specialization.cpp (revision 7c97dc20ab6148289f2cc01b2999130e32a19eb3)
1 // RUN: %clang_cc1 -std=c++17 -verify %s
2 // RUN: %clang_cc1 -std=c++20 -verify %s
3 
4 namespace GH61356 {
5 
6 template <typename T, bool b>
7 class boo {void foo();};
8 
9 template <typename T>
10 class boo<T, true>;
11 
12 template<typename T>
foo()13 void boo<T, true>::foo(){} // expected-error{{out-of-line definition of 'foo' from class 'boo<type-parameter-0-0, true>' without definition}}
14 
15 }
16