1 #include "../../gcc.dg/analyzer/analyzer-decls.h"
5 void *arr
[2] = {&&x
, &&y
};
10 __analyzer_dump_path (); /* { dg-message "path" } */
11 __analyzer_eval (pc
== 0); /* { dg-warning "TRUE" "true" { xfail *-*-* } .-1 } */
12 /* { dg-bogus "UNKNOWN" "unknown" { xfail *-*-* } .-1 } */
16 __analyzer_dump_path (); /* { dg-message "path" } */
17 __analyzer_eval (pc
== 1); /* { dg-warning "TRUE" "" { xfail *-*-* } } */
18 /* { dg-bogus "UNKNOWN" "unknown" { xfail *-*-* } .-1 } */
22 void test_duplicates (int pc
)
24 void *arr
[3] = {&&x
, &&y
, &&x
};
30 __analyzer_dump_path (); /* { dg-message "path" } */
31 __analyzer_eval (pc
== 0); /* { dg-warning "UNKNOWN" } */
35 __analyzer_dump_path (); /* { dg-message "path" } */
36 __analyzer_eval (pc
== 1); /* { dg-warning "TRUE" "" { xfail *-*-* } } */
37 /* { dg-bogus "UNKNOWN" "unknown" { xfail *-*-* } .-1 } */
41 void test_multiple (int pc
)
43 void *arr
[2] = {&&x
, &&y
};
48 __analyzer_dump_path (); /* { dg-message "path" } */
49 __analyzer_eval (pc
== 0); /* { dg-warning "TRUE" "true" { xfail *-*-* } .-1 } */
50 /* { dg-bogus "UNKNOWN" "unknown" { xfail *-*-* } .-1 } */
55 __analyzer_dump_path (); /* { dg-message "path" } */
56 __analyzer_eval (pc
== 1); /* { dg-warning "TRUE" "" { xfail *-*-* } } */
57 /* { dg-bogus "UNKNOWN" "unknown" { xfail *-*-* } .-1 } */