blob: 26109e7c630030c68ba4db68a66089eaade1aef6 [file] [log] [blame]
Douglas Gregorf552c202011-02-15 18:11:42 +00001// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
2
3// <rdar://problem/8684363>: clang++ not respecting __attribute__((used)) on destructors
4struct X0 {
5 // CHECK: define linkonce_odr void @_ZN2X0C1Ev
6 __attribute__((used)) X0() {}
7 // CHECK: define linkonce_odr void @_ZN2X0D1Ev
8 __attribute__((used)) ~X0() {}
9};