brintos

brintos / llvm-project-archived public Read only

0
0
Text · 345 B · 5755ce9 Raw
20 lines · cpp
1// RUN: %clang_cc1 -emit-pch -o %t %s2// RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s3// expected-no-diagnostics4 5#ifndef HEADER6#define HEADER7 8template <class T, class U>9constexpr T BuiltinBitCastWrapper(const U &Arg) {10  return __builtin_bit_cast(T, Arg);11}12 13#else14 15int main() {16  return BuiltinBitCastWrapper<int>(0);17}18 19#endif20