Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaTemplate / defaulted-destructor-in-temporary.cpp
blobcbd4950c6af8e9c0a42d8d4f0649246a55cf3f25
1 // RUN: %clang_cc1 -std=c++11 -triple=x86_64-apple-darwin %s -emit-llvm -o - | FileCheck %s
3 // CHECK: define linkonce_odr {{.*}} @_ZN3StrD1Ev
5 class A {
6 public:
7 ~A();
8 };
9 class Str {
10 A d;
12 public:
13 ~Str() = default;
15 class E {
16 Str s;
17 template <typename>
18 void h() {
19 s = {};
21 void f();
23 void E::f() {
24 h<int>();