symbian1.c: New test.
* gcc.dg/symbian1.c: New test. * gcc.dg/symbian2.c: Likewise. From-SVN: r85505
This commit is contained in:
parent
cddbddb790
commit
5357b1f9df
@ -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
|
||||
|
11
gcc/testsuite/gcc.dg/symbian1.c
Normal file
11
gcc/testsuite/gcc.dg/symbian1.c
Normal 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() {}
|
||||
|
10
gcc/testsuite/gcc.dg/symbian2.c
Normal file
10
gcc/testsuite/gcc.dg/symbian2.c
Normal 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");
|
||||
}
|
Loading…
Reference in New Issue
Block a user