YouCompleteMe/cpp/llvm/tools/clang/test/CodeGenCXX/virtual-operator-call.cpp

11 lines
147 B
C++
Raw Normal View History

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