symbian1.c: New test.

* gcc.dg/symbian1.c: New test.
	* gcc.dg/symbian2.c: Likewise.

From-SVN: r85505
This commit is contained in:
Mark Mitchell 2004-08-03 21:20:36 +00:00 committed by Mark Mitchell
parent cddbddb790
commit 5357b1f9df
3 changed files with 26 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2004-08-03 Mark Mitchell <mark@codesourcery.com>
* gcc.dg/symbian1.c: New test.
* gcc.dg/symbian2.c: Likewise.
2004-08-03 H.J. Lu <hongjiu.lu@intel.com>
PR target/16570

View File

@ -0,0 +1,11 @@
/* { dg-do compile { target arm*-*-symbianelf* } } */
/* Symbian OS requires that all defined symbols with external linkage
have the ELF STV_HIDDEN attribute set by default. */
/* { dg-final { scan-assembler ".hidden.*i" } } */
/* { dg-final { scan-assembler ".hidden.*j" } } */
/* { dg-final { scan-assembler ".hidden.*f" } } */
int i;
int j = 3;
void f() {}

View File

@ -0,0 +1,10 @@
/* { dg-do compile { target arm*-*-symbianelf* } } */
/* { dg-options "-O2" } */
/* Symbian OS requires that builtins not be expanded by default. Make
sure that a reference to "strlen" is emitted. */
/* { dg-final { scan-assembler "strlen" } } */
int f() {
return strlen("abc");
}