From 4d3c66bf32bc7668f1adc98d3bf32e6b212bcdce Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 16 Jun 2003 12:05:38 +0000 Subject: New testcases for bugs and the new DAE pass llvm-svn: 6693 --- .../C++Frontend/2003-06-08-VirtualFunctions.cpp | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 llvm/test/Regression/C++Frontend/2003-06-08-VirtualFunctions.cpp (limited to 'llvm/test/Regression/C++Frontend/2003-06-08-VirtualFunctions.cpp') 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() { + +} -- cgit v1.2.3