blob: 672384fed2c343c6c50b664bdf104d55dfd347e7 [file] [edit]
// RUN: %clang_cc1 -triple x86_64 -fcxx-exceptions -std=c++20 -fblocks -fexperimental-new-constant-interpreter -verify=expected,both %s
// RUN: %clang_cc1 -triple x86_64 -fcxx-exceptions -std=c++20 -fblocks -verify=ref,both %s
struct S {
void (^p)(){}; // expected-note {{invalid type 'void (^)()' is a member of 'S'}}
};
constexpr long l = __builtin_bit_cast(long, S{}); // both-error {{must be initialized by a constant expression}} \
// both-note {{constexpr bit cast involving type 'void (^)()' is not yet supported}}