diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-24 21:40:25 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-24 21:40:25 +0000 |
commit | 22c56c6af922f4072825d5aaaea15db2d35fcd6e (patch) | |
tree | 40be88ebc76f6537320e010427dca1894ff34e37 /gcc/testsuite/gcc.dg/verbose-asm.c | |
parent | 606942e3df1248904b04cfa1d9389e2878518fbb (diff) | |
download | gcc-22c56c6af922f4072825d5aaaea15db2d35fcd6e.tar.gz |
PR other/6782
* final.c (get_mem_expr_from_op): Return 0 if op is NULL.
* gcc.dg/verbose-asm.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53856 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/verbose-asm.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/verbose-asm.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/verbose-asm.c b/gcc/testsuite/gcc.dg/verbose-asm.c new file mode 100644 index 00000000000..7d105d31cda --- /dev/null +++ b/gcc/testsuite/gcc.dg/verbose-asm.c @@ -0,0 +1,27 @@ +/* Test whether -fverbose-asm works. */ +/* { dg-do compile } */ +/* { dg-options "-fverbose-asm" } */ + +void foo (int *x) +{ + (*x)++; +} + +int bar (int *y) +{ + int a, b; + b = 10; + a = 26; + foo (&a); + a += 10; + foo (&a); + *y--; + return b; +} + +int +main (int argc, char *argv []) +{ + bar (&argc); + return 0; +} |