Skip several analyzer socket tests on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / c-c++-common / analyzer / feasibility-2.c
blob9fe62d22cc263c77687afabc113d8bbbdda43a81
1 /* Verify that -fno-analyzer-feasibility works. */
2 /* { dg-additional-options "-fno-analyzer-feasibility" } */
4 #include "analyzer-decls.h"
6 void test_1 (int flag)
8 int a;
9 if (flag)
10 a = 1;
11 else
12 a = 2;
14 if (a == 1) /* (can only be the case when "flag" was true above). */
15 if (!flag)
17 __analyzer_dump_path (); /* { dg-message "note: path" "path diag" } */
18 /* { dg-message "infeasible" "infeasibility event" { target *-*-* } .-1 } */