diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-06-10 21:50:10 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-06-10 21:50:10 +0000 |
commit | 6fff0335f84b4fbc80fe510b02694c2bb4c2d73b (patch) | |
tree | 19d0a572c3e27e5190c6222479a445537eaaf039 /gcc/testsuite/gcc.dg/20020530-1.c | |
parent | d20ef498d9e65d6d7f33e075e926df7b22d346cc (diff) | |
download | gcc-6fff0335f84b4fbc80fe510b02694c2bb4c2d73b.tar.gz |
PR c/6809
* print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
* gcc.dg/20020530-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54463 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/20020530-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/20020530-1.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/20020530-1.c b/gcc/testsuite/gcc.dg/20020530-1.c new file mode 100644 index 00000000000..b2d0ecda511 --- /dev/null +++ b/gcc/testsuite/gcc.dg/20020530-1.c @@ -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; +} |