summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr41442.c
blob: feae791bdd0045bcc11c60e0ef920985d2c2d49e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-O2" } */

typedef struct LINK link;
struct LINK
{
    link* next;
};

int haha(link* p1, link* p2)
{
  if ((p1->next && !p2->next) || p2->next)
    return 0;

  return 1;
}

/* { dg-final { scan-assembler-times "test|cmp" 2 } } */