commit | 29f1a6070ac35fcbea9241c843df7f3f7c5c3228 | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Sat Dec 19 02:13:41 2009 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Sat Dec 19 02:13:41 2009 +0000 |
tree | 56827965c88d3281cebec541785afb0d2a381432 | |
parent | 410a3f3c194a541acb5cdf3b98e96d6078685cf2 [diff] [blame] |
Correctly initialize the PrimaryBaseInfo if a base is null. Fixes PR5832. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91748 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGenCXX/virtual-function-calls.cpp b/test/CodeGenCXX/virtual-function-calls.cpp index b927dec..0b3a684 100644 --- a/test/CodeGenCXX/virtual-function-calls.cpp +++ b/test/CodeGenCXX/virtual-function-calls.cpp
@@ -9,3 +9,11 @@ // CHECK: call void % a->f('c'); } + +struct B : virtual A { + virtual void f(); +}; + +void f(B * b) { + b->f(); +} \ No newline at end of file