Hans Wennborg | c9bd88e | 2014-01-14 19:35:09 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm -o - %s | FileCheck %s |
Douglas Gregor | d66828d | 2011-02-19 21:54:50 +0000 | [diff] [blame] | 2 | |
| 3 | // CHECK: @llvm.global_ctors |
| 4 | |
| 5 | // PR6521 |
| 6 | void bar(); |
| 7 | struct Foo { |
David Blaikie | ea3e51d | 2015-06-29 17:29:50 +0000 | [diff] [blame] | 8 | // CHECK-LABEL: define linkonce_odr {{.*}}void @_ZN3Foo3fooEv |
Douglas Gregor | d66828d | 2011-02-19 21:54:50 +0000 | [diff] [blame] | 9 | static void foo() __attribute__((constructor)) { |
| 10 | bar(); |
| 11 | } |
| 12 | }; |