diff options
author | Chris Lattner <sabre@nondot.org> | 2003-06-16 12:05:38 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-06-16 12:05:38 +0000 |
commit | f27aca9276a855a99122df37205830e4ad16e5ab (patch) | |
tree | 7f201857cc62dd3141adf6153a9bd3c4f89e002f /test/C++Frontend/2003-06-08-VirtualFunctions.cpp | |
parent | 84c9d5c3c08ac602d53dcef4f7d6298e23a3ccb7 (diff) |
New testcases for bugs and the new DAE pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6693 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/C++Frontend/2003-06-08-VirtualFunctions.cpp')
-rw-r--r-- | test/C++Frontend/2003-06-08-VirtualFunctions.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/C++Frontend/2003-06-08-VirtualFunctions.cpp b/test/C++Frontend/2003-06-08-VirtualFunctions.cpp new file mode 100644 index 0000000000..ea32e19612 --- /dev/null +++ b/test/C++Frontend/2003-06-08-VirtualFunctions.cpp @@ -0,0 +1,23 @@ + + +struct foo { + int y; + foo(); + virtual int T() = 0; +}; + +struct bar : public foo { + //int x; + bar(); + int T() {} +}; + +//int bar::X() { return 0; } + +foo::foo() : y(4) { + +} + +bar::bar() { + +} |