blob: 86dd6b959bfb93d386a21d0dfec54d3b1c1aa386 [file] [log] [blame]
Hans Wennborgc9bd88e2014-01-14 19:35:09 +00001// RUN: %clang_cc1 -emit-llvm -triple %itanium_abi_triple -o - %s | FileCheck %s
Douglas Gregore0610152011-02-15 18:11:42 +00002
3// <rdar://problem/8684363>: clang++ not respecting __attribute__((used)) on destructors
4struct X0 {
Eli Friedmana526f272011-06-13 22:51:21 +00005 // CHECK: define linkonce_odr {{.*}} @_ZN2X0C1Ev
Douglas Gregore0610152011-02-15 18:11:42 +00006 __attribute__((used)) X0() {}
Eli Friedmana526f272011-06-13 22:51:21 +00007 // CHECK: define linkonce_odr {{.*}} @_ZN2X0D1Ev
Douglas Gregore0610152011-02-15 18:11:42 +00008 __attribute__((used)) ~X0() {}
9};