Reorganize tests

This commit is contained in:
Jeehoon Kang
2020-04-23 23:07:23 +09:00
parent 073a65ae53
commit 7c53818f73
50 changed files with 3 additions and 4 deletions

18
examples/c/struct2.c Normal file
View File

@@ -0,0 +1,18 @@
typedef struct {
char a;
struct {
int b[4];
};
long c;
} Temp;
int main() {
const Temp temp = {1, {{2, 3, 4, 5}}, 6};
Temp temp2;
temp2 = temp;
int sum = temp2.a + temp2.b[2] + temp2.c;
return sum == 11;
}