1 // RUN: %clang_cc1 -std=c++11 -triple=x86_64-apple-darwin %s -emit-llvm -o - | FileCheck %s
2 
3 // CHECK: define linkonce_odr {{.*}} @_ZN3StrD1Ev
4 
5 class A {
6 public:
7   ~A();
8 };
9 class Str {
10   A d;
11 
12 public:
13   ~Str() = default;
14 };
15 class E {
16   Str s;
17   template <typename>
h()18   void h() {
19     s = {};
20   }
21   void f();
22 };
f()23 void E::f() {
24   h<int>();
25 }
26