aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2011-06-01 15:42:11 +0000
committerDiego Novillo <dnovillo@google.com>2011-06-01 15:42:11 +0000
commit846c7680a980218315bc380afbaf851aff6b5057 (patch)
tree770bd33a6c887d8ef3a51baf39acc8ccf785bfc9
parent8a3c8a35805cbc8f63e47e9f90a2571cfc9f0615 (diff)
* g++.dg/pph/c1return-5.cc: New.
* g++.dg/pph/c1return-5.h: New. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/pph@174533 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/ChangeLog.pph5
-rw-r--r--gcc/testsuite/g++.dg/pph/c1return-5.cc1
-rw-r--r--gcc/testsuite/g++.dg/pph/c1return-5.h16
3 files changed, 22 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog.pph b/gcc/testsuite/ChangeLog.pph
index b2f32b01c5e..87b9209a8c8 100644
--- a/gcc/testsuite/ChangeLog.pph
+++ b/gcc/testsuite/ChangeLog.pph
@@ -1,3 +1,8 @@
+2011-06-01 Diego Novillo <dnovillo@google.com>
+
+ * g++.dg/pph/c1return-5.cc: New.
+ * g++.dg/pph/c1return-5.h: New.
+
2011-05-27 Diego Novillo <dnovillo@google.com>
* g++.dg/pph/c1attr-warn-unused-result.cc: New.
diff --git a/gcc/testsuite/g++.dg/pph/c1return-5.cc b/gcc/testsuite/g++.dg/pph/c1return-5.cc
new file mode 100644
index 00000000000..804e1139652
--- /dev/null
+++ b/gcc/testsuite/g++.dg/pph/c1return-5.cc
@@ -0,0 +1 @@
+#include "c1return-5.h"
diff --git a/gcc/testsuite/g++.dg/pph/c1return-5.h b/gcc/testsuite/g++.dg/pph/c1return-5.h
new file mode 100644
index 00000000000..8b72a51d774
--- /dev/null
+++ b/gcc/testsuite/g++.dg/pph/c1return-5.h
@@ -0,0 +1,16 @@
+#ifndef __PPH_GUARD_H
+#define __PPH_GUARD_H
+/* { dg-options "-mpreferred-stack-boundary=4" } */
+/* { dg-final { scan-assembler-not "and\[lq\]?\[^\\n\]*-64,\[^\\n\]*sp" } } */
+
+/* This compile only test is to detect an assertion failure in stack branch
+ development. */
+struct bar
+{
+ int x;
+} __attribute__((aligned(64)));
+
+
+struct bar
+foo (void) { }
+#endif