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 | 4d3c66bf32bc7668f1adc98d3bf32e6b212bcdce (patch) | |
| tree | 841bb4dd0ca9ff50bceb7d33ee569f85b0ca8309 /llvm/test/Regression/C++Frontend/2003-06-08-VirtualFunctions.cpp | |
| parent | cb9ef2bccc8b135e9251349bceed6661a8f0ae1b (diff) | |
| download | bcm5719-llvm-4d3c66bf32bc7668f1adc98d3bf32e6b212bcdce.tar.gz bcm5719-llvm-4d3c66bf32bc7668f1adc98d3bf32e6b212bcdce.zip | |
New testcases for bugs and the new DAE pass
llvm-svn: 6693
Diffstat (limited to 'llvm/test/Regression/C++Frontend/2003-06-08-VirtualFunctions.cpp')
| -rw-r--r-- | llvm/test/Regression/C++Frontend/2003-06-08-VirtualFunctions.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/llvm/test/Regression/C++Frontend/2003-06-08-VirtualFunctions.cpp b/llvm/test/Regression/C++Frontend/2003-06-08-VirtualFunctions.cpp new file mode 100644 index 00000000000..ea32e196128 --- /dev/null +++ b/llvm/test/Regression/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() { + +} |

