Skip to content

Commit

Permalink
gcc.dg/save-args-1.c: Add a cheesy test for -msave-args
Browse files Browse the repository at this point in the history
Build a simple main-like function and make sure we see the movq to store
the pointer argument to the stack.
  • Loading branch information
richlowe committed May 14, 2011
1 parent 6e2317f commit 815880d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions gcc/testsuite/gcc.dg/save-args-1.c
@@ -0,0 +1,10 @@
/* Test -msave-args */
/* { dg-do compile { target i?86-*-solaris2.* } } */
/* { dg-options "-m64 -msave-args" } */
/* { dg-final { scan-assembler "movq\t%rsi, -32\\(%rbp\\)" } } */

int
foo(int argc, char **argv)
{
return (1);
}

0 comments on commit 815880d

Please sign in to comment.