Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / virtual-operator-call.cpp
blob0ec2d48212b65184b62d818b382b7f84d54f54ab
1 // RUN: %clang_cc1 %s -triple i386-unknown-unknown -emit-llvm -o - | FileCheck %s
3 struct A {
4 virtual int operator-();
5 };
7 void f(A a, A *ap) {
8 // CHECK: call noundef i32 @_ZN1AngEv(ptr {{[^,]*}} %a)
9 -a;
11 // CHECK: call noundef i32 %
12 -*ap;