Sign in
cobalt
/
cobalt
/
11295760be490ee3fe93b612c49343055ab2c485
/
.
/
src
/
third_party
/
llvm-project
/
clang
/
test
/
CodeGenCXX
/
virtual-operator-call.cpp
blob: 727c8e140fd81e81c0205089acbd496de192944f [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 %s -triple i386-unknown-unknown -emit-llvm -o - | FileCheck %s
struct
A
{
virtual
int
operator
-();
};
void
f
(
A a
,
A
*
ap
)
{
// CHECK: call i32 @_ZN1AngEv(%struct.A* %a)
-
a
;
// CHECK: call i32 %
-*
ap
;
}