diff options
Diffstat (limited to 'final/ABI-Testsuite/test/s2_9/virtual.xpp')
-rwxr-xr-x | final/ABI-Testsuite/test/s2_9/virtual.xpp | 19 |
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(); +} |