diff options
author | Jason Merrill <jason@redhat.com> | 2006-09-08 01:11:40 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2006-09-08 01:11:40 -0400 |
commit | df20ea24f939e8d2b005d2ef985446b2fe0cf597 (patch) | |
tree | 961181e0ca6120d90ad5ec06b4bd72fd8f863d60 /gcc/testsuite | |
parent | 158d56c4e2ce2ae5f3044bd7a277fef43466f2f6 (diff) | |
download | gcc-df20ea24f939e8d2b005d2ef985446b2fe0cf597.tar.gz |
re PR middle-end/27724 (internal compiler error: no-op convert from 4 to 8 bytes in initializer)
PR middle-end/27724
* varasm.c (output_constant): Only strip actual no-op conversions.
From-SVN: r116777
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/gcc.dg/long-long-cst1.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/long-long-cst1.c b/gcc/testsuite/gcc.dg/long-long-cst1.c new file mode 100644 index 00000000000..7c120dc14c9 --- /dev/null +++ b/gcc/testsuite/gcc.dg/long-long-cst1.c @@ -0,0 +1,17 @@ +/* PR middle-end/27724 */ +/* { dg-do run } */ +/* { dg-options "" } */ + +extern void abort(); + +struct st{ + int _mark; +}; +unsigned long long t = ((int)&(((struct st*)16)->_mark) - 32); + +int main() +{ + if (t != (unsigned long long)(int)-16) + abort (); +} + |