brintos

brintos / llvm-project-archived public Read only

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