llvm-project/llvm/test/FrontendC/attribute_constructor.c

7 lines
119 B
C

// RUN: %llvmgcc %s -S -o - | grep llvm.global_ctors
void foo() __attribute__((constructor));
void foo() {
bar();
}