blob: 0852511ea5eb24d3873205e7848adbd64de4dbf4 [file] [log] [blame]
Hans Wennborg442e4f72013-12-13 22:43:52 +00001// RUN: %clang_cc1 -emit-llvm -cxx-abi itanium -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};