| 1 | // RUN: %clang_cc1 %s -emit-llvm -o - | grep llvm.global_ctors |
|---|---|
| 2 | int __attribute__((constructor)) foo(void) { |
| 3 | return 0; |
| 4 | } |
| 5 | void __attribute__((constructor)) bar(void) {} |
| 6 | |
| 7 |
| 1 | // RUN: %clang_cc1 %s -emit-llvm -o - | grep llvm.global_ctors |
|---|---|
| 2 | int __attribute__((constructor)) foo(void) { |
| 3 | return 0; |
| 4 | } |
| 5 | void __attribute__((constructor)) bar(void) {} |
| 6 | |
| 7 |