forked from Imagelibrary/binutils-gdb
libctf: add rewriting tests
Now there's a chance of it actually working, we can add more tests for the long-broken dict read-and-rewrite cases. This is the first ever test for the (rarely-used, unpleasant, and until recently completely broken) ctf_gzwrite function. libctf/ * testsuite/libctf-regression/gzrewrite*: New test. * testsuite/libctf-regression/zrewrite*: Likewise.
This commit is contained in:
19
libctf/testsuite/libctf-regression/gzrewrite-ctf.c
Normal file
19
libctf/testsuite/libctf-regression/gzrewrite-ctf.c
Normal file
@@ -0,0 +1,19 @@
|
||||
int an_int;
|
||||
char *a_char_ptr;
|
||||
typedef int (*a_typedef) (int main);
|
||||
struct struct_forward;
|
||||
enum enum_forward;
|
||||
union union_forward;
|
||||
typedef int an_array[50];
|
||||
struct a_struct { int foo; };
|
||||
union a_union { int bar; };
|
||||
enum an_enum { FOO };
|
||||
|
||||
a_typedef a;
|
||||
struct struct_forward *x;
|
||||
union union_forward *y;
|
||||
enum enum_forward *z;
|
||||
struct a_struct *xx;
|
||||
union a_union *yy;
|
||||
enum an_enum *zz;
|
||||
an_array ar;
|
||||
Reference in New Issue
Block a user