From ae232e452c8e8ebd8d277e9707eaa69bc35171ee Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Fri, 6 Aug 2004 03:26:19 +0000 Subject: [PATCH] visibility-8.C: Add constructor and destructor tests. * g++.dg/ext/visibility/visibility-8.C: Add constructor and destructor tests. From-SVN: r85623 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/ext/visibility/visibility-8.C | 11 +++++++++++ 2 files changed, 16 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a04b598e47b..02bff741a73 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-08-05 Mark Mitchell + + * g++.dg/ext/visibility/visibility-8.C: Add constructor and + destructor tests. + 2004-08-05 Mark Mitchell * g++.dg/ext/visibility/assign1.C: Use scan-hidden and diff --git a/gcc/testsuite/g++.dg/ext/visibility/visibility-8.C b/gcc/testsuite/g++.dg/ext/visibility/visibility-8.C index f6487263975..f0139b362a8 100644 --- a/gcc/testsuite/g++.dg/ext/visibility/visibility-8.C +++ b/gcc/testsuite/g++.dg/ext/visibility/visibility-8.C @@ -6,6 +6,11 @@ // { dg-final { scan-not-hidden "_ZN1A1fEv" } } // { dg-final { scan-not-hidden "_Z1gv" } } // { dg-final { scan-not-hidden "_Z1hv" } } +// { dg-final { scan-not-hidden "_ZN1BC1Ev" } } +// { dg-final { scan-not-hidden "_ZN1BC2Ev" } } +// { dg-final { scan-not-hidden "_ZN1BD0Ev" } } +// { dg-final { scan-not-hidden "_ZN1BD1Ev" } } +// { dg-final { scan-not-hidden "_ZN1BD2Ev" } } // { dg-final { scan-not-hidden "_ZN1B1iEv" } } // { dg-final { scan-not-hidden "_ZN1B1jEv" } } // { dg-final { scan-not-hidden "_ZN1A1a" } } @@ -28,11 +33,17 @@ __declspec(dllexport) void h(); void h() {} struct B { + B(); + __declspec(dllexport) virtual ~B(); void i(); __declspec(dllexport) void j(); __declspec(dllexport) static int b; }; +__declspec(dllexport) B::B() {} + +B::~B() {} + __declspec(dllexport) void B::i() {} void B::j() {} -- 2.30.2