Skip to content

Commit 163e188

Browse files
committed
[BOLT][test] Fix AArch64 test
Remove header dependency from cross-platform test. Reviewed By: yota9 Differential Revision: https://reviews.llvm.org/D123107
1 parent 5adc94b commit 163e188

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bolt/test/AArch64/text-data.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88

99
// CHECK: {{.*}} <arr>:
1010

11-
#include <stdlib.h>
11+
extern void exit(int);
1212

1313
typedef void (*FooPtr)();
1414

1515
void exitOk() { exit(0); }
1616

17-
__attribute__((section(".text"))) const FooPtr arr[] = {exitOk, NULL};
17+
__attribute__((section(".text"))) const FooPtr arr[] = {exitOk, 0};
1818

1919
int main() {
2020
arr[0]();

0 commit comments

Comments
 (0)