summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/attribute_constructor.c
blob: c82c263dda198cefad46a24aed6360c49a3c73df (about) (plain)
1
2
3
4
5
6
// RUN: %clang_cc1 %s -emit-llvm -o - | grep llvm.global_ctors

void foo() __attribute__((constructor));
void foo() {
  bar();
}