aboutsummaryrefslogtreecommitdiff
path: root/final/ABI-Testsuite/test/s2_9/virtual.xpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2019-09-19 13:10:55 +0000
committerHans Wennborg <hans@hanshq.net>2019-09-19 13:10:55 +0000
commitfa3f34f401d94658c19f943a2c6ba76ea038153f (patch)
treeaaf433f6c6362135ecc6b965696dc72060adc77d /final/ABI-Testsuite/test/s2_9/virtual.xpp
parent74ba89a887a18e0d751490f7ce1f50ddef4fb6d2 (diff)
Creating release candidate final from release_900 branchsvn-tags/RELEASE_900
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/tags/RELEASE_900@372316 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'final/ABI-Testsuite/test/s2_9/virtual.xpp')
-rwxr-xr-xfinal/ABI-Testsuite/test/s2_9/virtual.xpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/final/ABI-Testsuite/test/s2_9/virtual.xpp b/final/ABI-Testsuite/test/s2_9/virtual.xpp
new file mode 100755
index 00000000..b4d3bc03
--- /dev/null
+++ b/final/ABI-Testsuite/test/s2_9/virtual.xpp
@@ -0,0 +1,19 @@
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+// RUN: cxx_compiler -c cxx_rtti cxx_exceptions %s -o %t.o
+// RUN: linker %t.o -o %t%exeext
+// RUN: bindump %t.o| FileCheck %s
+
+struct foo { };
+struct bar : virtual foo { };
+
+// Section 2.9.2
+// Check that the type-info was generated and a v-table was generated
+
+// CHECK-DAG: _ZTV3bar
+// CHECK-DAG: _ZTI3bar
+
+int main(int argc, char *argv[]) {
+ throw bar();
+}