mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 12:56:07 +00:00

As pointed out in D133835 these globals will never be written to (they're only used for trivially copyable types), so they can always be constant. Differential revision: https://reviews.llvm.org/D146211
11 lines
273 B
C
11 lines
273 B
C
// RUN: %clang_cc1 -triple x86_64-windows-msvc -emit-llvm %s -o - | FileCheck %s
|
|
|
|
// CHECK: @constinit = private constant [3 x ptr] [ptr blockaddress(@main, %L), ptr null, ptr null]
|
|
|
|
void receivePtrs(void **);
|
|
|
|
int main(void) {
|
|
L:
|
|
receivePtrs((void *[]){ &&L, 0, 0 });
|
|
}
|