diff mbox

[pph] Add new C test case (issue4559064)

Message ID 20110601154109.C66301DA1C9@topo.tor.corp.google.com
State New
Headers show

Commit Message

Diego Novillo June 1, 2011, 3:41 p.m. UTC
This test case from the C testsuite started working after the last
merge from trunk.

Collin, this is the test I was referring to yesterday.  I'm going to
add some more C test cases to the testsuite that are currently not
working.  I think that's going to make our fixing job easier
(otherwise, it's not trivial to test these test cases outside my own
local tree).

Tested on x86_64.  Committed to pph.

Diego.


	* g++.dg/pph/c1return-5.cc: New.
	* g++.dg/pph/c1return-5.h: New.


--
This patch is available for review at http://codereview.appspot.com/4559064
diff mbox

Patch

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 0000000..804e113
--- /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 0000000..8b72a51
--- /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