diff options
author | Anders Carlsson <andersca@mac.com> | 2009-12-19 02:13:41 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-12-19 02:13:41 +0000 |
commit | 6fda43f4c116ee2809791f67705f2055f8c2fb13 (patch) | |
tree | 7fe168283533e6baeaa962c0683a0bd94590b6c1 /clang/test/CodeGenCXX/virtual-function-calls.cpp | |
parent | 7173903ea658e70728178844e6bca057f5708b80 (diff) | |
download | bcm5719-llvm-6fda43f4c116ee2809791f67705f2055f8c2fb13.tar.gz bcm5719-llvm-6fda43f4c116ee2809791f67705f2055f8c2fb13.zip |
Correctly initialize the PrimaryBaseInfo if a base is null. Fixes PR5832.
llvm-svn: 91748
Diffstat (limited to 'clang/test/CodeGenCXX/virtual-function-calls.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/virtual-function-calls.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/virtual-function-calls.cpp b/clang/test/CodeGenCXX/virtual-function-calls.cpp index b927dec8f10..0b3a684301e 100644 --- a/clang/test/CodeGenCXX/virtual-function-calls.cpp +++ b/clang/test/CodeGenCXX/virtual-function-calls.cpp @@ -9,3 +9,11 @@ void f(A *a) { // 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 |