[AMDGPU] Removed superfluous predicate. NFC.
[llvm-project.git] / clang / test / PCH / builtin-bit-cast.cpp
blob5755ce965e33fe017af0fa6897c5bf5e25a5f2d8
1 // RUN: %clang_cc1 -emit-pch -o %t %s
2 // RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s
3 // expected-no-diagnostics
5 #ifndef HEADER
6 #define HEADER
8 template <class T, class U>
9 constexpr T BuiltinBitCastWrapper(const U &Arg) {
10 return __builtin_bit_cast(T, Arg);
13 #else
15 int main() {
16 return BuiltinBitCastWrapper<int>(0);
19 #endif