[all-commits] [llvm/llvm-project] 86f9cf: [clang] Add tests for (const) weak variables
Anders Waldenborg via All-commits
all-commits at lists.llvm.org
Wed Jun 1 11:21:29 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 86f9cf88cb06d36e37ef8de006b2a0b651c9b7e9
https://github.com/llvm/llvm-project/commit/86f9cf88cb06d36e37ef8de006b2a0b651c9b7e9
Author: Anders Waldenborg <anders at 0x63.nu>
Date: 2022-06-01 (Wed, 01 Jun 2022)
Changed paths:
A clang/test/CodeGenCXX/weak-init.cpp
A clang/test/SemaCXX/weak-init.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list