diff options
author | Chris Lattner <sabre@nondot.org> | 2003-06-16 12:25:11 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-06-16 12:25:11 +0000 |
commit | cb12c508cbdd377c56bdd831bc4e67f9fc06587a (patch) | |
tree | 132560962d2119f646a0072e8f5400eb8119ab46 /test | |
parent | 1d1b0e56ce6d23fcd8d7bf3f85245198d681db16 (diff) | |
download | external_llvm-cb12c508cbdd377c56bdd831bc4e67f9fc06587a.zip external_llvm-cb12c508cbdd377c56bdd831bc4e67f9fc06587a.tar.gz external_llvm-cb12c508cbdd377c56bdd831bc4e67f9fc06587a.tar.bz2 |
Fix link errors by adding main's
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6706 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/C++Frontend/2003-06-08-BaseType.cpp | 2 | ||||
-rw-r--r-- | test/C++Frontend/2003-06-08-VirtualFunctions.cpp | 13 |
2 files changed, 5 insertions, 10 deletions
diff --git a/test/C++Frontend/2003-06-08-BaseType.cpp b/test/C++Frontend/2003-06-08-BaseType.cpp index b78af2a..e10a5a6 100644 --- a/test/C++Frontend/2003-06-08-BaseType.cpp +++ b/test/C++Frontend/2003-06-08-BaseType.cpp @@ -15,3 +15,5 @@ struct bar : public foo { bar::bar() { } + +int main() { return 0; } diff --git a/test/C++Frontend/2003-06-08-VirtualFunctions.cpp b/test/C++Frontend/2003-06-08-VirtualFunctions.cpp index ea32e19..174e514 100644 --- a/test/C++Frontend/2003-06-08-VirtualFunctions.cpp +++ b/test/C++Frontend/2003-06-08-VirtualFunctions.cpp @@ -7,17 +7,10 @@ struct foo { }; struct bar : public foo { - //int x; bar(); int T() {} }; -//int bar::X() { return 0; } - -foo::foo() : y(4) { - -} - -bar::bar() { - -} +foo::foo() : y(4) { } +bar::bar() { } +int main() { return 0; } |