Receive the data of a structure without a typedef

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Receive the data of a structure without a typedef

Nathan Ridge via cfe-dev
Hi

I'm trying to receive the data of a structure without a typedef.

struct s_example{
int a;
int b;
} s_example_test1 = {1,2};

The type of s_example_test1 is elaborated and I'm trying to receive the structure's data.

Is there a way to get the data?

I expected to receive the following data:
struct s_example{
int a;
int b;



Thanks
Zorik

_______________________________________________
cfe-dev mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev