Home
last modified time | relevance | path

Searched defs:FunT2 (Results 1 – 2 of 2) sorted by relevance

/llvm-project/clang/test/SemaCXX/
H A Dconsteval-return-void.cpp6 template <typename T> consteval int FunT2() { return 0; } in FunT2() function
7 template <> consteval int FunT2<double>() { return 0; } in FunT2() function
8 template <> consteval int FunT2<int>() { return; } // expected-error {{non-void consteval function … in FunT2() function
H A Dconstant-expression-cxx11.cpp2234 template <typename T> constexpr int FunT2() { return 0; } FunT2() function
2235 template <> constexpr int FunT2<double>() { return 0; } FunT2() function
2236 template <> constexpr int FunT2<int>() { return; } // expected-error {{non-void constexpr function 'FunT2<int>' should return a value}} FunT2() function