llvm-project/clang/test/CodeGenCXX/virtual-function-calls.cpp

12 lines
155 B
C++
Raw Normal View History

// RUN: clang-cc %s -emit-llvm -o - | FileCheck %s
// PR5021
struct A {
virtual void f(char);
};
void f(A *a) {
2009-10-13 04:06:34 +08:00
// CHECK: call void %
a->f('c');
}