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 } } */