1/* { dg-do compile } */ 2/* { dg-options "-O2" } */ 3 4typedef struct LINK link; 5struct LINK 6{ 7 link* next; 8}; 9 10int haha(link* p1, link* p2) 11{ 12 if ((p1->next && !p2->next) || p2->next) 13 return 0; 14 15 return 1; 16} 17 18/* { dg-final { scan-assembler-times "test|cmp" 2 } } */ 19