Mercurial > hg > CbC > CbC_llvm
annotate clang/test/PCH/builtin-bit-cast.cpp @ 266:00f31e85ec16 default tip
Added tag current for changeset 31d058e83c98
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 14 Oct 2023 10:13:55 +0900 |
parents | 2e18cbf3894f |
children |
rev | line source |
---|---|
207 | 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 |