diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-09-04 10:13:34 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-09-04 10:13:34 +0000 |
commit | 9008da1643116cb7ac439fb352a9c58709d7cf6f (patch) | |
tree | fbfcff35d3a81e042474d91defd6285b1c80b20d /gcc/testsuite/gcc.dg/20000904-1.c | |
parent | 95732cd462c1fd5e6e1051d8b44182e0b4020aee (diff) | |
download | gcc-9008da1643116cb7ac439fb352a9c58709d7cf6f.tar.gz |
* gcc.dg/20000904-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36130 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/20000904-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/20000904-1.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/20000904-1.c b/gcc/testsuite/gcc.dg/20000904-1.c new file mode 100644 index 00000000000..c6238e35099 --- /dev/null +++ b/gcc/testsuite/gcc.dg/20000904-1.c @@ -0,0 +1,11 @@ +/* { dg-do compile { target i?86-*-* } } */ +/* { dg-options "-O0 -fpic" } */ + +static struct { + unsigned short a, b, c, d; +} x[10]; + +int foo(int i) +{ + return ((*((char *)&x[i] + i)) | (*((char *)&x[i] + i))); +} |