Commit 5357b1f9 by Mark Mitchell Committed by Mark Mitchell

symbian1.c: New test.

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

From-SVN: r85505
parent cddbddb7
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
......
/* { 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() {}
/* { 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");
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment