From 2412b9b097d9120108a35399599a650fac45f8a5 Mon Sep 17 00:00:00 2001 From: Steven Bosscher Date: Wed, 5 Dec 2012 23:57:17 +0000 Subject: [PATCH] * g++.dg/pr55604.C: New test. From-SVN: r194231 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/g++.dg/pr55604.C | 11 +++++++++++ 2 files changed, 15 insertions(+) create mode 100644 gcc/testsuite/g++.dg/pr55604.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b010c1103e9..30df45eae59 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2012-12-05 Steven Bosscher + + * g++.dg/pr55604.C: New test. + 2012-12-05 James Greenhalgh * lib/target-supports.exp diff --git a/gcc/testsuite/g++.dg/pr55604.C b/gcc/testsuite/g++.dg/pr55604.C new file mode 100644 index 00000000000..135ae4d5e55 --- /dev/null +++ b/gcc/testsuite/g++.dg/pr55604.C @@ -0,0 +1,11 @@ +/* { dg-do compile } */ +/* { dg-options "-O -fdump-rtl-reload" } */ + +main () +{ + char s[10]; + const int t = (__builtin_memcpy (s, "Hello", 6), 5); + __builtin_printf ("%d %s\n", t, s); +} + +/* { dg-final { cleanup-rtl-dump "reload" } } */