brintos

brintos / llvm-project-archived public Read only

0
0
Text · 307 B · d5f83c2 Raw
17 lines · cpp
1// Test with pch.2// RUN: %clang_cc1 -emit-pch -std=c++14 -o %t %s3// RUN: %clang_cc1 -include-pch %t -emit-llvm -std=c++14 -o - %s4 5#ifndef HEADER6#define HEADER7 8template <typename T>9constexpr decltype(auto) test(T) { return T(); }10class A {};11void k() {  test(A()); }12 13#else14 15auto s = test(A());16#endif17