bolt/deps/llvm-18.1.8/clang/test/CodeGenCXX/virtual-operator-call.cpp

14 lines
252 B
C++
Raw Normal View History

2025-02-14 19:21:04 +01:00
// RUN: %clang_cc1 %s -triple i386-unknown-unknown -emit-llvm -o - | FileCheck %s
struct A {
virtual int operator-();
};
void f(A a, A *ap) {
// CHECK: call noundef i32 @_ZN1AngEv(ptr {{[^,]*}} %a)
-a;
// CHECK: call noundef i32 %
-*ap;
}