diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-06 03:26:19 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-06 03:26:19 +0000 |
commit | 3603e129e2bf75039810d9de6fd0e14f1404b7ad (patch) | |
tree | 39d44d19a9efac4009fbf4ade4912051ed28e719 | |
parent | 9be279507a13f13b482ccca179e9e4d1b5d13877 (diff) | |
download | gcc-3603e129e2bf75039810d9de6fd0e14f1404b7ad.tar.gz |
* g++.dg/ext/visibility/visibility-8.C: Add constructor and
destructor tests.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85623 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/ext/visibility/visibility-8.C | 11 |
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a04b598e47b..02bff741a73 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2004-08-05 Mark Mitchell <mark@codesourcery.com> + * g++.dg/ext/visibility/visibility-8.C: Add constructor and + destructor tests. + +2004-08-05 Mark Mitchell <mark@codesourcery.com> + * g++.dg/ext/visibility/assign1.C: Use scan-hidden and dg-require-visiblity. * g++.dg/ext/visibility/fvisibility-inlines-hidden.C: Likewise. 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() {} |