blob: d8c69aef4db506bef099f275c4b3d596969fda1a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* { 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" } } */
|