hanchenye-llvm-project/clang/test/CodeGenCXX/virtual-operator-call.cpp

11 lines
147 B
C++

// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
struct A {
virtual int operator-() = 0;
};
void f(A *a) {
// CHECK: call i32 %
-*a;
}