diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/arm/symbian2.c')
-rw-r--r-- | gcc/testsuite/gcc.target/arm/symbian2.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/arm/symbian2.c b/gcc/testsuite/gcc.target/arm/symbian2.c new file mode 100644 index 000000000..987016368 --- /dev/null +++ b/gcc/testsuite/gcc.target/arm/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"); +} |