diff options
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() { + +} |

