class1.C: Port to Darwin.

* g++.dg/ext/visibility/class1.C: Port to Darwin.
	* g++.dg/ext/visibility/noPLT.C: Likewise.

From-SVN: r122348
This commit is contained in:
Geoffrey Keating 2007-02-27 00:10:22 +00:00 committed by Geoffrey Keating
parent 75b6bb627c
commit f6bc864076
3 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2007-02-26 Geoffrey Keating <geoffk@apple.com>
* g++.dg/ext/visibility/class1.C: Port to Darwin.
* g++.dg/ext/visibility/noPLT.C: Likewise.
2007-02-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gcc.dg/torture/builtin-modf-1.c: Use -fno-finite-math-only on

View File

@ -2,9 +2,9 @@
// Init should not be hidden, so calling it should use the PLT.
// { dg-options "-fpic" }
// { dg-do compile { target i?86-*-* x86_64-*-* } }
// { dg-do compile { target i?86-*-* x86_64-*-* *-*-darwin* } }
// { dg-require-visibility "" }
// { dg-final { scan-assembler "InitEv@PLT" } }
// { dg-final { scan-assembler "InitEv@PLT|indirect_symbol.*InitEv" } }
#pragma GCC visibility push(hidden)
struct __attribute__ ((visibility ("default"))) nsINIParser

View File

@ -2,7 +2,7 @@
/* { dg-do compile { target fpic } } */
/* { dg-require-visibility "" } */
/* { dg-options "-fPIC -fvisibility=hidden" } */
/* { dg-final { scan-assembler-not "methodEv@PLT" } } */
/* { dg-final { scan-assembler-not "methodEv@PLT|indirect_symbol.*methodEv" } } */
class Foo
{