fvisibility-override1.C: Test using 'hidden' and 'default' for better portability.

* g++.dg/ext/visibility/fvisibility-override1.C: Test using
	'hidden' and 'default' for better portability.
	* g++.dg/ext/visibility/fvisibility-override2.C: Likewise.

From-SVN: r92800
This commit is contained in:
Geoffrey Keating 2005-01-02 02:55:35 +00:00 committed by Geoffrey Keating
parent a2566ae98d
commit 3ffd0339c7
3 changed files with 8 additions and 4 deletions

View File

@ -6,6 +6,10 @@
2005-01-01 Geoffrey Keating <geoffk@geoffk.org>
* g++.dg/ext/visibility/fvisibility-override1.C: Test using
'hidden' and 'default' for better portability.
* g++.dg/ext/visibility/fvisibility-override2.C: Likewise.
* g++.old-deja/g++.abi/cxa_vec.C: Add -flat_namespace on Darwin
6 and 7.
* g++.old-deja/g++.brendan/new3.C: Likewise.

View File

@ -2,9 +2,9 @@
/* { dg-do compile } */
/* { dg-require-visibility "" } */
/* { dg-options "-fvisibility=hidden" } */
/* { dg-final { scan-assembler "\\.internal.*Foo.methodEv" } } */
/* { dg-final { scan-not-hidden "methodEv" } } */
class __attribute__ ((visibility ("internal"))) Foo
class __attribute__ ((visibility ("default"))) Foo
{
void method();
};

View File

@ -2,11 +2,11 @@
/* { dg-do compile } */
/* { dg-require-visibility "" } */
/* { dg-options "-fvisibility=hidden" } */
/* { dg-final { scan-assembler "\\.internal.*Foo.methodEv" } } */
/* { dg-final { scan-not-hidden "Foo.methodEv" } } */
class Foo
{
__attribute__ ((visibility ("internal"))) void method();
__attribute__ ((visibility ("default"))) void method();
};
void Foo::method() { }