/* { dg-do run } */ /* { dg-options "-flto -fipa-type-collector -fdump-ipa-type-collector -ftp-comparison-functions=EQ_STRUCTURAL -ftp-types-compared=astruct_s" } */ struct astruct_s { struct astruct_s* a; }; int main(int argc, char* argv) { struct astruct_s a; } // This is proof that an incomplete type cannot be compared // via structural equality. // 0,64:astruct_s {0,64:astruct_s {}*;} x 0,0:astruct_s {} = f, // I am not an expert on regex /* { dg-final { scan-wpa-ipa-dump "0,64:astruct_s .0,64:astruct_s ..... x 0,0:astruct_s .. = f," "type-collector" } } */