aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/execute/20090219-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/execute/20090219-1.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.c-torture/execute/20090219-1.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/execute/20090219-1.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/execute/20090219-1.c
new file mode 100644
index 000000000..a5f973f68
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.c-torture/execute/20090219-1.c
@@ -0,0 +1,29 @@
+/* On ARM, BAR used to get a bogus number in E due to stack
+ misalignment. */
+
+extern void abort (void);
+extern void exit (int);
+
+void
+foo (void)
+{
+ int f = 0;
+
+ void bar (int a, int b, int c, int d, int e)
+ {
+ if (e != 0)
+ {
+ f = 1;
+ abort ();
+ }
+ }
+
+ bar (0, 0, 0, 0, 0);
+}
+
+int
+main (void)
+{
+ foo ();
+ exit (0);
+}