diff options
author | Chris Lattner <sabre@nondot.org> | 2003-10-27 17:51:31 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-10-27 17:51:31 +0000 |
commit | fbbc2cc63cf816f30b9a44435db5fafa8ca5e8ec (patch) | |
tree | f61f5ba621ff137340732ea3de04652a6783c476 /test/C++Frontend/2003-10-27-VirtualBaseClassCrash.cpp | |
parent | d184c67b52aa1fbe825866545086bdd88e0b9c5f (diff) |
New testcase which crashes the C++ FE
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9534 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/C++Frontend/2003-10-27-VirtualBaseClassCrash.cpp')
-rw-r--r-- | test/C++Frontend/2003-10-27-VirtualBaseClassCrash.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/C++Frontend/2003-10-27-VirtualBaseClassCrash.cpp b/test/C++Frontend/2003-10-27-VirtualBaseClassCrash.cpp new file mode 100644 index 0000000000..39ec5c76fa --- /dev/null +++ b/test/C++Frontend/2003-10-27-VirtualBaseClassCrash.cpp @@ -0,0 +1,15 @@ + +template<class T> +struct super { + int Y; + void foo(); +}; + +template <class T> +struct test : virtual super<int> {}; + +extern test<int> X; + +void foo() { + X.foo(); +} |