summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/verbose-asm.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-24 21:40:25 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-24 21:40:25 +0000
commit22c56c6af922f4072825d5aaaea15db2d35fcd6e (patch)
tree40be88ebc76f6537320e010427dca1894ff34e37 /gcc/testsuite/gcc.dg/verbose-asm.c
parent606942e3df1248904b04cfa1d9389e2878518fbb (diff)
downloadgcc-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.c27
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;
+}