* gcc.dg/symbian1.c: New test.
* gcc.dg/symbian2.c: Likewise.
From-SVN: r85505
+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
--- /dev/null
+/* { 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() {}
+
--- /dev/null
+/* { 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");
+}