aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-11-02 19:26:20 +0100
committerlemon <lsof@mailbox.org>2025-11-02 19:26:20 +0100
commit088c3c1ce51de82ef317592bae766ad20f82208d (patch)
treee94f30be7158f6b5cd97224883db584a7340d56b /test
parentfab6314ffcb547cbbf45ce16e390eba00e5bfa31 (diff)
regalloc: misc
Diffstat (limited to 'test')
-rw-r--r--test/test4.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test4.c b/test/test4.c
index c1c9429..694d798 100644
--- a/test/test4.c
+++ b/test/test4.c
@@ -21,6 +21,17 @@ int bitf(struct foo *q) {
return q->x + q->y - q->k + q->a;
}
+struct s1 {
+ short x : 3, y : 12;
+};
+struct s2 {
+ struct s1 a;
+};
+
+struct s2 bitfcopy2(struct s2 x) {
+ return (struct s2){x.a};
+}
+
int main(int p) {
extern int printf(const char *, ...);