• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Compile this test with:
3  *   gcc -c -g test-headers-dir-v1.c
4  *
5  *   This test exhibits changes that are redundant in a weird way.
6  *   The redundant path through the diff graph involves typedefs,
7  *   function types and function parameter diff nodes.
8  *
9  */
10 
11 #include "headers-b/header-b-v1.h"
12 #include "headers-a/header-a-v1.h"
13 
14 struct opaque_struct
15 {
16   int m0;
17   int m1;
18   struct public_struct_type *m2;
19   char m3;
20 };
21 
22 struct second_opaque_struct
23 {
24   int m0;
25   char m1;
26 };
27 
foo(public_struct_pointer_type p)28 void foo(public_struct_pointer_type p __attribute__((unused)))
29 {
30 }
31 
32 void
bar(second_public_struct_pointer_type p1,second_opaque_struct_pointer_type p2)33 bar(second_public_struct_pointer_type p1 __attribute__((unused)),
34     second_opaque_struct_pointer_type p2 __attribute__((unused)))
35 {
36 }
37