Skip to content

Commit 056421b

Browse files
committed
Update test expectations for unions
1 parent d8151e2 commit 056421b

13 files changed

Lines changed: 13 additions & 13 deletions

tests/unit/union_addrof_external.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// translation-fail
1+
// translation-fail: refcount
2+
// no-compile: unsafe
23
#include <assert.h>
34
#include <stddef.h>
45
#include <stdint.h>

tests/unit/union_cross_arm_cast.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// translation-fail
1+
// no-compile
22
#include <assert.h>
33
#include <stddef.h>
44
#include <stdint.h>

tests/unit/union_field_alignment.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// translation-fail
1+
// no-compile
22
#include <assert.h>
33
#include <stddef.h>
44
#include <stdint.h>

tests/unit/union_flex_array_member.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// translation-fail
1+
// no-compile
22
#include <assert.h>
33
#include <stddef.h>
44
#include <stdint.h>

tests/unit/union_memset_memcpy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// translation-fail
1+
// no-compile
22
#include <assert.h>
33
#include <stddef.h>
44
#include <stdint.h>

tests/unit/union_nested.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// translation-fail
1+
// no-compile
22
#include <assert.h>
33
#include <stdint.h>
44
#include <string.h>

tests/unit/union_pointer_pun_address.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// translation-fail
1+
// no-compile: refcount
2+
// panic: unsafe
23
#include <assert.h>
34

45
struct node_a {

tests/unit/union_pointer_pun_writethrough.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// translation-fail
1+
// panic: refcount
2+
// XFAIL: unsafe
23
#include <assert.h>
34

45
int main(void) {

tests/unit/union_struct_dual_use.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// translation-fail
1+
// no-compile
22
#include <assert.h>
33
#include <string.h>
44

tests/unit/union_tagged_many_arms.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// translation-fail
21
#include <assert.h>
32
#include <stdint.h>
43

0 commit comments

Comments
 (0)