| Douglas Gregor | 944ed3b | 2011-02-19 21:54:50 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s |
| 2 | |||||
| 3 | // CHECK: @llvm.global_ctors | ||||
| 4 | |||||
| 5 | // PR6521 | ||||
| 6 | void bar(); | ||||
| 7 | struct Foo { | ||||
| 8 | // CHECK: define linkonce_odr void @_ZN3Foo3fooEv | ||||
| 9 | static void foo() __attribute__((constructor)) { | ||||
| 10 | bar(); | ||||
| 11 | } | ||||
| 12 | }; | ||||