aboutsummaryrefslogtreecommitdiff
path: root/final/ABI-Testsuite/test/s2_9/non_virtual.xpp
diff options
context:
space:
mode:
Diffstat (limited to 'final/ABI-Testsuite/test/s2_9/non_virtual.xpp')
-rwxr-xr-xfinal/ABI-Testsuite/test/s2_9/non_virtual.xpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/final/ABI-Testsuite/test/s2_9/non_virtual.xpp b/final/ABI-Testsuite/test/s2_9/non_virtual.xpp
new file mode 100755
index 00000000..16f2bed3
--- /dev/null
+++ b/final/ABI-Testsuite/test/s2_9/non_virtual.xpp
@@ -0,0 +1,18 @@
+// This file is distributed under the University of Illinois Open Source License.
+// See LICENSE.TXT for details.
+// 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 { };
+
+// Section 2.9.2
+// Check that the type-info was generated and no v-table was generated
+
+// CHECK-NOT: _ZTV3foo
+// CHECK-DAG: _ZTI3foo
+// CHECK-NOT: _ZTV3foo
+
+int main(int argc, char *argv[]) {
+ throw foo();
+}