2012-10-24 20:22:56 +08:00
|
|
|
// RUN: %clang_cc1 %s -triple i386-unknown-unknown -emit-llvm -o - | FileCheck %s
|
2009-11-16 13:31:29 +08:00
|
|
|
|
|
|
|
struct A {
|
2014-12-02 01:48:04 +08:00
|
|
|
virtual int operator-();
|
2009-11-16 13:31:29 +08:00
|
|
|
};
|
|
|
|
|
2014-12-02 01:48:04 +08:00
|
|
|
void f(A a, A *ap) {
|
|
|
|
// CHECK: call i32 @_ZN1AngEv(%struct.A* %a)
|
|
|
|
-a;
|
|
|
|
|
2009-11-16 13:31:29 +08:00
|
|
|
// CHECK: call i32 %
|
2014-12-02 01:48:04 +08:00
|
|
|
-*ap;
|
2009-11-16 13:31:29 +08:00
|
|
|
}
|