Message ID | 20110601154109.C66301DA1C9@topo.tor.corp.google.com |
---|---|
State | New |
Headers | show |
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