1 // RUN: %clang_cc1 -std=c++20 -include %s %s -o %t 2 3 // RUN: %clang_cc1 -std=c++20 -emit-pch %s -o %t 4 // RUN: %clang_cc1 -std=c++20 -include-pch %t -verify %s 5 6 // expected-no-diagnostics 7 8 #ifndef HEADER 9 #define HEADER 10 __anona063a9ae0102null11template<typename T> auto f() -> decltype([]{ return T(42); }); 12 13 #else /*included pch*/ 14 15 static_assert(decltype(f<int>())()() == 42); 16 17 #endif // HEADER 18