You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
345 B
20 lines
345 B
// RUN: %clang_cc1 -emit-pch -o %t %s
|
|
// RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s
|
|
// expected-no-diagnostics
|
|
|
|
#ifndef HEADER
|
|
#define HEADER
|
|
|
|
template <class T, class U>
|
|
constexpr T BuiltinBitCastWrapper(const U &Arg) {
|
|
return __builtin_bit_cast(T, Arg);
|
|
}
|
|
|
|
#else
|
|
|
|
int main() {
|
|
return BuiltinBitCastWrapper<int>(0);
|
|
}
|
|
|
|
#endif
|