[llvm-commits] CVS: llvm/test/Regression/C++Frontend/2005-02-19-UnnamedVirtualThunkArgument.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Feb 19 09:08:05 PST 2005
Changes in directory llvm/test/Regression/C++Frontend:
2005-02-19-UnnamedVirtualThunkArgument.cpp added (r1.1)
---
Log message:
Testcase for PR520: http://llvm.cs.uiuc.edu/PR520
---
Diffs of the changes: (+22 -0)
2005-02-19-UnnamedVirtualThunkArgument.cpp | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+)
Index: llvm/test/Regression/C++Frontend/2005-02-19-UnnamedVirtualThunkArgument.cpp
diff -c /dev/null llvm/test/Regression/C++Frontend/2005-02-19-UnnamedVirtualThunkArgument.cpp:1.1
*** /dev/null Sat Feb 19 11:07:59 2005
--- llvm/test/Regression/C++Frontend/2005-02-19-UnnamedVirtualThunkArgument.cpp Sat Feb 19 11:07:48 2005
***************
*** 0 ****
--- 1,22 ----
+ // RUN: %llvmgxx -S %s -o /dev/null
+
+ struct Foo {
+ Foo();
+ virtual ~Foo();
+ };
+
+ struct Bar {
+ Bar();
+ virtual ~Bar();
+ virtual bool test(bool) const;
+ };
+
+ struct Baz : public Foo, public Bar {
+ Baz();
+ virtual ~Baz();
+ virtual bool test(bool) const;
+ };
+
+ bool Baz::test(bool) const {
+ return true;
+ }
More information about the llvm-commits
mailing list