freebsd-nq/test/CodeGenCXX/virtual-operator-call.cpp

11 lines
147 B
C++
Raw Normal View History

2010-01-01 10:34:51 +00:00
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
2009-11-18 14:59:57 +00:00
struct A {
virtual int operator-() = 0;
};
void f(A *a) {
// CHECK: call i32 %
-*a;
}