summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gcc.c-torture/execute/string-opt-6.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/string-opt-6.c')
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/string-opt-6.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/string-opt-6.c b/gcc/testsuite/gcc.c-torture/execute/string-opt-6.c
index efd502f7b83..c684dbd4f13 100644
--- a/gcc/testsuite/gcc.c-torture/execute/string-opt-6.c
+++ b/gcc/testsuite/gcc.c-torture/execute/string-opt-6.c
@@ -45,6 +45,7 @@ int main()
/* When optimizing, all the above cases should be transformed into
something else. So any remaining calls to the original function
should abort. */
+__attribute__ ((noinline))
static char *
strcpy (char *d, const char *s)
{
OpenPOWER on IntegriCloud