From 3ffd0339c74b0024a3a2a7c2713c85e100a82e56 Mon Sep 17 00:00:00 2001
From: Geoffrey Keating <geoffk@geoffk.org>
Date: Sun, 2 Jan 2005 02:55:35 +0000
Subject: [PATCH] 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
---
 gcc/testsuite/ChangeLog                                     | 4 ++++
 gcc/testsuite/g++.dg/ext/visibility/fvisibility-override1.C | 4 ++--
 gcc/testsuite/g++.dg/ext/visibility/fvisibility-override2.C | 4 ++--
 3 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 7d2bcc0f0b0f..5a6e6ed302ad 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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.
diff --git a/gcc/testsuite/g++.dg/ext/visibility/fvisibility-override1.C b/gcc/testsuite/g++.dg/ext/visibility/fvisibility-override1.C
index 67d5ef09f60e..685cd13091f5 100644
--- a/gcc/testsuite/g++.dg/ext/visibility/fvisibility-override1.C
+++ b/gcc/testsuite/g++.dg/ext/visibility/fvisibility-override1.C
@@ -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();
 };
diff --git a/gcc/testsuite/g++.dg/ext/visibility/fvisibility-override2.C b/gcc/testsuite/g++.dg/ext/visibility/fvisibility-override2.C
index a0a2df5e81b0..07f0c07c72df 100644
--- a/gcc/testsuite/g++.dg/ext/visibility/fvisibility-override2.C
+++ b/gcc/testsuite/g++.dg/ext/visibility/fvisibility-override2.C
@@ -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() { }