summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/virtual-operator-call.cpp
blob: 42d38e55a04f3f8f85480ab88e74633e4882fc11 (about) (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s

struct A {
  virtual int operator-() = 0;
};

void f(A *a) {
  // CHECK: call i32 %
  -*a;
}