thunk3.C: Use .weak_definition on darwin.

2006-12-12  Josh Conner  <jconner@apple.com>

	* g++.dg/abi/thunk3.C: Use .weak_definition on darwin.
	* g++.dg/abi/thunk4.C: Likewise.
	* g++.dg/abi/rtti3.C: Likewise.

From-SVN: r119815
This commit is contained in:
Josh Conner 2006-12-13 02:16:19 +00:00 committed by Josh Conner
parent 5737796211
commit 26dff230b8
4 changed files with 14 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2006-12-12 Josh Conner <jconner@apple.com>
* g++.dg/abi/thunk3.C: Use .weak_definition on darwin.
* g++.dg/abi/thunk4.C: Likewise.
* g++.dg/abi/rtti3.C: Likewise.
2006-12-12 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
* gcc.target/spu/cpat-1.c: New test.

View File

@ -2,8 +2,10 @@
// necessarily the type info object
// { dg-require-weak "" }
// { dg-final { scan-assembler ".weak\[ \t\]_?_ZTSPP1A" } }
// { dg-final { scan-assembler-not ".weak\[ \t\]_?_ZTIPP1A" } }
// { dg-final { scan-assembler ".weak\[ \t\]_?_ZTSPP1A" { target { ! { *-*-darwin* } } } } }
// { dg-final { scan-assembler-not ".weak\[ \t\]_?_ZTIPP1A" { target { ! { *-*-darwin* } } } } }
// { dg-final { scan-assembler ".weak_definition\[ \t\]_?_ZTSPP1A" { target { *-*-darwin* } } } }
// { dg-final { scan-assembler-not ".weak_definition\[ \t\]_?_ZTIPP1A" { target { *-*-darwin* } } } }
struct A;

View File

@ -1,5 +1,6 @@
// { dg-require-weak "" }
// { dg-final { scan-assembler-not ".weak\[\t \]_?_ZThn._N7Derived3FooEv" } }
// { dg-final { scan-assembler-not ".weak\[\t \]_?_ZThn._N7Derived3FooEv" { target { ! { *-*-darwin* } } } } }
// { dg-final { scan-assembler-not ".weak_definition\[\t \]_?_ZThn._N7Derived3FooEv" { target { *-*-darwin* } } } }
struct Base
{

View File

@ -1,5 +1,6 @@
// { dg-require-weak "" }
// { dg-final { scan-assembler ".weak\[ \t\]_?_ZThn._N7Derived3FooEv" } }
// { dg-final { scan-assembler ".weak\[ \t\]_?_ZThn._N7Derived3FooEv" { target { ! { *-*-darwin* } } } } }
// { dg-final { scan-assembler ".weak_definition\[ \t\]_?_ZThn._N7Derived3FooEv" { target { *-*-darwin* } } } }
struct Base
{