summaryrefslogtreecommitdiff
path: root/test/FrontendC/2008-03-03-CtorAttrType.c
blob: dc0e47d811a4d2d3c940b4ddc7d8631c0dd1b350 (plain)
1
2
3
4
5
6
// RUN: %llvmgcc %s -S -emit-llvm -o - | grep llvm.global_ctors
int __attribute__((constructor)) foo(void) {
  return 0;
}
void __attribute__((constructor)) bar(void) {}