1 /* { dg-skip-if "" { powerpc*-*-aix* } } */
2 /* Verify that we can disable -Wanalyzer-too-complex via pragmas. */
3 /* { dg-additional-options "-Wanalyzer-too-complex -Werror=analyzer-too-complex -fno-analyzer-state-merge -g" } */
9 /* In theory each of p0...p4 can be in various malloc states,
10 independently, so the total combined number of states
11 at any program point within the loop is NUM_VARS * NUM_STATES. */
13 #pragma GCC diagnostic push
14 #pragma GCC diagnostic ignored "-Wanalyzer-too-complex"
18 void *p0
= NULL
, *p1
= NULL
, *p2
= NULL
, *p3
= NULL
, *p4
= NULL
;
46 *pp
= malloc (16); /* { dg-warning "leak" } */
58 #pragma GCC diagnostic pop