diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-11-13 16:28:05 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-11-13 16:29:09 +0000 |
commit | 03ac50856c9fc8c96b7a17239ee40a10397750a7 (patch) | |
tree | a648c6d3428e4757e003f6ed1748adb9613065db /gcc/testsuite/gcc.dg/pr62004.c | |
parent | 34efdaf078b01a7387007c4e6bde6db86384c4b7 (diff) | |
download | gcc-tarball-03ac50856c9fc8c96b7a17239ee40a10397750a7.tar.gz |
gcc 7.2.0
This is imported manually due to a bug in the tarball import script.
See the baserock-dev mailing list archives (November 2017) for a
more detailed explaination of the issue.
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr62004.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr62004.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/gcc/testsuite/gcc.dg/pr62004.c b/gcc/testsuite/gcc.dg/pr62004.c deleted file mode 100644 index c994a411b3..0000000000 --- a/gcc/testsuite/gcc.dg/pr62004.c +++ /dev/null @@ -1,47 +0,0 @@ -/* { dg-do run } */ -/* { dg-options "-O2 -fno-tree-tail-merge" } */ - -struct node -{ - struct node *next; - struct node *prev; -}; - -struct node node; - -struct head -{ - struct node *first; -}; - -struct head heads[5]; - -int k = 2; - -struct head *head = &heads[2]; - -int -main () -{ - struct node *p; - - node.next = (void*)0; - - node.prev = (void *)head; - - head->first = &node; - - struct node *n = head->first; - - struct head *h = &heads[k]; - - heads[2].first = n->next; - - if ((void*)n->prev == (void *)h) - p = h->first; - else - /* Dead tbaa-unsafe load from ((struct node *)&heads[2])->next. */ - p = n->prev->next; - - return !(p == (void*)0); -} |