From: Jason Merrill Date: Mon, 21 May 2001 15:54:33 +0000 (-0400) Subject: class.c (build_vtable): Set DECL_ASSEMBLER_NAME for vtables here. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5c1e4fd7e723ec42f416b5bce57814a8e65d0165;p=gcc.git class.c (build_vtable): Set DECL_ASSEMBLER_NAME for vtables here. * class.c (build_vtable): Set DECL_ASSEMBLER_NAME for vtables here. (get_vtable_decl, build_vtt): Not here. From-SVN: r42392 --- diff --git a/gcc/testsuite/g++.dg/mangle1.C b/gcc/testsuite/g++.dg/mangle1.C new file mode 100644 index 00000000000..50526b2b5f2 --- /dev/null +++ b/gcc/testsuite/g++.dg/mangle1.C @@ -0,0 +1,29 @@ +// Test for mangling of simple testcase involving construction vtables. + +// { dg-do compile } +// { dg-options "-fno-inline" } + +struct A { + virtual void f () { } +}; + +struct B: public virtual A { }; +struct C: public B { }; + +C c; + +// { dg-final { scan-assembler mangle1.C "\n_ZN1A1fEv:" } } +// { dg-final { scan-assembler mangle1.C "\n_ZN1AC2Ev:" } } +// { dg-final { scan-assembler mangle1.C "\n_ZN1BC2Ev:" } } +// { dg-final { scan-assembler mangle1.C "\n_ZN1CC1Ev:" } } +// { dg-final { scan-assembler mangle1.C "\n_ZTC1C0_1B:" } } +// { dg-final { scan-assembler mangle1.C "\n_ZTI1A:" } } +// { dg-final { scan-assembler mangle1.C "\n_ZTI1B:" } } +// { dg-final { scan-assembler mangle1.C "\n_ZTI1C:" } } +// { dg-final { scan-assembler mangle1.C "\n_ZTS1A:" } } +// { dg-final { scan-assembler mangle1.C "\n_ZTS1B:" } } +// { dg-final { scan-assembler mangle1.C "\n_ZTS1C:" } } +// { dg-final { scan-assembler mangle1.C "\n_ZTT1C:" } } +// { dg-final { scan-assembler mangle1.C "\n_ZTV1A:" } } +// { dg-final { scan-assembler mangle1.C "\n_ZTV1C:" } } +// { dg-final { scan-assembler mangle1.C "\n_ZTv0_n12_N1A1fEv:" } }