blob: d5f83c2543fb8329bf8758e5b6b850108d08352a [file] [log] [blame]
// Test with pch.
// RUN: %clang_cc1 -emit-pch -std=c++14 -o %t %s
// RUN: %clang_cc1 -include-pch %t -emit-llvm -std=c++14 -o - %s
#ifndef HEADER
#define HEADER
template <typename T>
constexpr decltype(auto) test(T) { return T(); }
class A {};
void k() { test(A()); }
#else
auto s = test(A());
#endif