brintos

brintos / llvm-project-archived public Read only

0
0
Text · 748 B · 50c2965 Raw
62 lines · cpp
1#include <stdio.h>2#include <vector>3 4struct JustAStruct5{6	int A;7	float B;8	char C;9	double D;10	long E;11	short F;12};13 14struct FooType15{16	int A;17	float B;18	char C;19	double D;20	long E;21	short F;22};23 24struct CCC25{26	int a, b, c;27};28 29struct Empty1 { void *data; };30struct Empty2 { void *data; };31 32 33int main(int argc, char const *argv[]) {34	JustAStruct foo;35	foo.A = 1;36	foo.B = 3.14;37	foo.C = 'e';38	foo.D = 6.28;39	foo.E = 3100419850;40	foo.F = 0;41 42	FooType bar;43	bar.A = 1;44	bar.B = 3.14;45	bar.C = 'e';46	bar.D = 6.28;47	bar.E = 3100419850;48	bar.F = 0;49	JustAStruct* foo_ptr = &foo;50 51	std::vector<int> int_vector;52 53	CCC ccc = {111, 222, 333};54 55        int bar_int = 20;56 57        Empty1 e1;58        Empty2 e2;59 60	return 0; // Set break point at this line.61}62