minix/external/bsd/llvm/dist/clang/test/CodeGenCXX/virtual-operator-call.cpp

11 lines
176 B
C++
Raw Normal View History

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