blob: 128dc8f3b82d438d2b62d2b070607dd8e5830c5c (
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-escape-analysis -fdump-ipa-escape-analysis -ftp-comparison-functions=EQ_MAIN_VARIANT -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 main variant 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," "escape-analysis" } } */
|