middle-end: Fix stalled swapped condition code value [PR115836]
[official-gcc.git] / gcc / testsuite / c-c++-common / analyzer / unused-local-1.c
blob361cdced6e3ab100acbe2e26f071f4400fae8352
1 /* { dg-additional-options "-fdump-analyzer-untracked" } */
3 struct st
5 const char *m_filename;
6 int m_line;
7 const char *m_function;
8 };
10 extern void debug (struct st *);
12 void test (void)
15 static struct st s1 = { __FILE__, __LINE__, __func__ }; /* { dg-warning "track 's1': no" } */
16 debug (&s1);
19 static struct st s2 = { __FILE__, __LINE__, __func__ }; /* { dg-warning "track 's2': no" } */
20 debug (&s2);