Skip to content

Commit a803277

Browse files
committed
tests: Enable varargs tests on aarch64
1 parent 8e36066 commit a803277

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

tests/items/src/varargs.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ void call_printf(void) {
77
printf("%d, %f\n", 10, 1.5);
88
}
99

10-
// See #1281. Varargs don't yet work on aarch64.
11-
#ifndef __aarch64__
12-
1310
void my_vprintf(const char *format, va_list ap) {
1411
vprintf(format, ap);
1512
}
@@ -137,5 +134,3 @@ double sample_stddev(int count, ...)
137134
va_end(args2);
138135
return sqrt(sum_sq_diff / count);
139136
}
140-
141-
#endif

tests/pointers/src/function_pointers.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,13 @@ int negintval(const char c) { return -c; }
1616

1717
int varargs_intval(const char c, ...) { return c; }
1818

19-
// See #1281. Varargs don't yet work on aarch64.
20-
#ifndef __aarch64__
21-
2219
int varargs_fp(const int c, ...) {
2320
va_list arg;
2421
va_start(arg, c);
2522
char_to_int *fp = va_arg(arg, char_to_int *);
2623
return fp((char)c);
2724
}
2825

29-
#endif
30-
3126
void entry3(const unsigned sz, int buffer[const]) {
3227
int i = 0;
3328

@@ -73,11 +68,9 @@ void entry3(const unsigned sz, int buffer[const]) {
7368
j = p4 != 0;
7469
j = 0 != p4;
7570

76-
#ifndef __aarch64__
7771
va_char_to_int_fp p8 = varargs_intval;
7872
buffer[i++] = p8('A');
7973
buffer[i++] = (*p8)('B', 'C');
80-
#endif
8174

8275
// Test valid casts between function pointers
8376
// with additional parameters
@@ -97,8 +90,6 @@ void entry3(const unsigned sz, int buffer[const]) {
9790
buffer[i++] = (*(s).fn)(('a'));
9891

9992
buffer[i++] = p2 == intval;
100-
#ifndef __aarch64__
10193
buffer[i++] = varargs_fp('a', intval);
10294
buffer[i++] = varargs_fp('b', p2);
103-
#endif
10495
}

0 commit comments

Comments
 (0)