]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc/testsuite/
authorolegendo <olegendo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 21 Dec 2014 22:36:33 +0000 (22:36 +0000)
committerolegendo <olegendo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 21 Dec 2014 22:36:33 +0000 (22:36 +0000)
PR target/17280
* gcc.target/sh/torture/pr17280.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218998 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/sh/torture/pr17280.c [new file with mode: 0644]

index 85d11d015071232654f255cee75effecd987eb39..dd103bb8fac858e9a20d679c4c62f31c2319bf1e 100644 (file)
@@ -1,3 +1,8 @@
+2014-12-21  Oleg Endo  <olegendo@gcc.gnu.org>
+
+       PR target/17280
+       * gcc.target/sh/torture/pr17280.c: New.
+
 2014-12-19  Edward Smith-Rowland  <3dw4rd@verizon.net>
 
        * g++.dg/cpp1y/feat-cxx98-neg.C: Enable __cpp_sized_deallocation test.
diff --git a/gcc/testsuite/gcc.target/sh/torture/pr17280.c b/gcc/testsuite/gcc.target/sh/torture/pr17280.c
new file mode 100644 (file)
index 0000000..9e4fb71
--- /dev/null
@@ -0,0 +1,13 @@
+/* Check that there are no problems with .uses labels when branch relaxation
+   is enabled.  */
+/* { dg-do assemble }  */
+/* { dg-additional-options "-mrelax" }  */
+
+extern void foo (int);
+
+int
+main (void)
+{
+  foo (7);
+  return 0;
+}