Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / type-cache-3.cpp
blobcc54849bb92881230ad1be3b5135827beb61b773
1 // RUN: %clang_cc1 -emit-llvm %s -o - -triple i386-pc-windows-msvc19.16.0 | FileCheck %s
2 // REQUIRES: asserts, x86-registered-target
4 // CHECK-LABEL: define {{.*}}@"?f@@YAXXZ"(
5 // CHECK: call void @"?dc@z@@SAXU1@@Z"
7 // CHECK-LABEL: define {{.*}}@"?dc@z@@SAXU1@@Z"(
8 // CHECK: store ptr %{{.*}}, ptr %{{.*}}
9 struct z {
10 static void dc(z) {}
11 void (*p)(z);
14 void f() {
15 z::dc({});