Debian Codegraph @

clang/test/PCH/builtin-bit-cast.cpp

raw
1 // RUN: %clang_cc1 -emit-pch -o %t %s
2 // RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s
3 // expected-no-diagnostics
4
5 #ifndef HEADER
6 #define HEADER
7
8 template <class T, class U>
9 constexpr T BuiltinBitCastWrapper(const U &Arg) {
10 return __builtin_bit_cast(T, Arg);
11 }
12
13 #else
14
15 int main() {
16 return BuiltinBitCastWrapper<int>(0);
17 }
18
19 #endif