diff options
Diffstat (limited to 'llvm/test/Regression/C++Frontend')
3 files changed, 48 insertions, 0 deletions
diff --git a/llvm/test/Regression/C++Frontend/2003-06-08-BaseType.cpp b/llvm/test/Regression/C++Frontend/2003-06-08-BaseType.cpp new file mode 100644 index 00000000000..b78af2acb83 --- /dev/null +++ b/llvm/test/Regression/C++Frontend/2003-06-08-BaseType.cpp @@ -0,0 +1,17 @@ + + +struct foo { + int y; + foo(); +}; + +struct bar : public foo { + //int x; + bar(); +}; + +//int bar::X() { return 0; } + +bar::bar() { + +} 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() { + +} diff --git a/llvm/test/Regression/C++Frontend/2003-06-13-Crasher.cpp b/llvm/test/Regression/C++Frontend/2003-06-13-Crasher.cpp new file mode 100644 index 00000000000..be581dde836 --- /dev/null +++ b/llvm/test/Regression/C++Frontend/2003-06-13-Crasher.cpp @@ -0,0 +1,8 @@ +void bar(); + +void foo() { + struct TEST { + ~TEST() { bar(); } + } TESTOBJ; + +} |

