1 // RUN: %clang_cc1 -std=c++20 -include %s %s -o %t
3 // RUN: %clang_cc1 -std=c++20 -emit-pch %s -o %t
4 // RUN: %clang_cc1 -std=c++20 -include-pch %t -verify %s
6 // expected-no-diagnostics
11 template<typename T
> auto f() -> decltype([]{ return T(42); });
13 #else /*included pch*/
15 static_assert(decltype(f
<int>())()() == 42);