clang/test/SemaCXX/undefined-partial-specialization.cpp
raw| 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> |
| 13 | void boo<T, true>::foo(){} // expected-error{{out-of-line definition of 'foo' from class 'GH61356::boo<T, true>' without definition}} |
| 14 | |
| 15 | } |