summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/virtual-operator-call.cpp
blob: 72d49c2300939f182fd2ddb432b116baa7945359 (plain)
1
2
3
4
5
6
7
8
9
10
// 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;
}
OpenPOWER on IntegriCloud