]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Mon, 10 Jun 2002 21:51:07 +0000 (21:51 +0000)
committerNo Author <no-author@gcc.gnu.org>
Mon, 10 Jun 2002 21:51:07 +0000 (21:51 +0000)
'gcc-3_1-branch'.

From-SVN: r54464

gcc/testsuite/gcc.dg/20020530-1.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.dg/20020530-1.c b/gcc/testsuite/gcc.dg/20020530-1.c
new file mode 100644 (file)
index 0000000..b2d0ecd
--- /dev/null
@@ -0,0 +1,20 @@
+/* PR c/6809
+   Test -fverbose-asm with unnamed fields.  */
+/* { dg-do compile } */
+/* { dg-options "-fverbose-asm" } */
+
+typedef union U
+{
+  struct
+  {
+    unsigned int a;
+    int b;
+  };
+  long long c;
+} *T;
+
+int foo (T x)
+{
+  int r = x->a + x->b;
+  return r;
+}