diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-30 19:13:32 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-30 19:13:32 +0000 |
commit | 879e6664462821e8f43500b22229bb2ac1e09cea (patch) | |
tree | ff6fbe2138242f2438e6bb48988cae82c4cf1a68 /gcc/testsuite/gcc.c-torture | |
parent | a36ec8263c25ecfe4e83aa19eaf33244394baa9c (diff) | |
download | gcc-879e6664462821e8f43500b22229bb2ac1e09cea.tar.gz |
2011-06-30 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 175718 using svnmerge.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@175720 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.c-torture')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/pr38752.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr38752.c b/gcc/testsuite/gcc.c-torture/compile/pr38752.c new file mode 100644 index 00000000000..3d409bf96f5 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr38752.c @@ -0,0 +1,25 @@ +typedef struct +{ + int baddr; +} mstruct_t; + +static struct +{ + unsigned int mapnum; + mstruct_t unused; +} mtab; + +static mstruct_t *mactab = &mtab.unused; + +int +main(void) +{ + int i; + int addr; + + for (i=1; i <= mtab.mapnum; i++) + if (addr < mactab[i].baddr) + break; + return 0; +} + |