brintos

brintos / llvm-project-archived public Read only

0
0
Text · 361 B · 3992d02 Raw
16 lines · cpp
1// RUN: %clang_cc1 -std=c++17 -verify %s2// RUN: %clang_cc1 -std=c++20 -verify %s3 4namespace GH61356 {5 6template <typename T, bool b>7class boo {void foo();};8 9template <typename T>10class boo<T, true>;11 12template<typename T>13void boo<T, true>::foo(){} // expected-error{{out-of-line definition of 'foo' from class 'GH61356::boo<T, true>' without definition}}14 15}16