[clang] Add tests for (const) weak variables
This adds tests checking the behavior of const variables declared with weak attribute. Both checking that they can not be used in places where a constant expression is required and that a dynamic initializer is emitted when used as an initializer expression. Differential Revision: https://reviews.llvm.org/D126578
Loading
Please sign in to comment