aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2004-08-03 21:20:36 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2004-08-03 21:20:36 +0000
commit5357b1f9df2a6613d463096a8808f34a4ee6f60e (patch)
tree75c81c51a4aeff4760b42c17eca89438e1f0c427 /gcc
parentcddbddb790944ff97f7672401aed84cf583e5acb (diff)
downloadgcc-5357b1f9df2a6613d463096a8808f34a4ee6f60e.zip
gcc-5357b1f9df2a6613d463096a8808f34a4ee6f60e.tar.gz
gcc-5357b1f9df2a6613d463096a8808f34a4ee6f60e.tar.bz2
symbian1.c: New test.
* gcc.dg/symbian1.c: New test. * gcc.dg/symbian2.c: Likewise. From-SVN: r85505
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/symbian1.c11
-rw-r--r--gcc/testsuite/gcc.dg/symbian2.c10
3 files changed, 26 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 85dd35b..72e026c 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
diff --git a/gcc/testsuite/gcc.dg/symbian1.c b/gcc/testsuite/gcc.dg/symbian1.c
new file mode 100644
index 0000000..25e8128
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/symbian1.c
@@ -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() {}
+
diff --git a/gcc/testsuite/gcc.dg/symbian2.c b/gcc/testsuite/gcc.dg/symbian2.c
new file mode 100644
index 0000000..9870163
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/symbian2.c
@@ -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");
+}