testsuite: Skip analyzer tests on AIX.
[official-gcc.git] / gcc / testsuite / c-c++-common / analyzer / null-terminated-strings-2.c
blob3bbae821cd46183b70a3543b8a8002b02a64143d
1 #include "../../gcc.dg/analyzer/analyzer-decls.h"
3 char buf[16];
5 int main (void)
7 /* We should be able to assume that "buf" is all zeroes here. */
9 __analyzer_eval (__analyzer_get_strlen (buf) == 0); /* { dg-warning "TRUE" "ideal" { xfail *-*-* } } */
10 /* { dg-bogus "UNKNOWN" "status quo" { xfail *-*-* } .-1 } */
12 buf[0] = 'a';
13 __analyzer_eval (__analyzer_get_strlen (buf) == 1); /* { dg-warning "TRUE" "ideal" { xfail *-*-* } } */
14 /* { dg-bogus "UNKNOWN" "status quo" { xfail *-*-* } .-1 } */
16 return 0;