summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/verbose-asm.c
diff options
context:
space:
mode:
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;
+}