[BOLT][test] Fix AArch64 test
authorMaksim Panchenko <maks@fb.com>
Tue, 5 Apr 2022 06:20:32 +0000 (23:20 -0700)
committerMaksim Panchenko <maks@fb.com>
Tue, 5 Apr 2022 06:28:47 +0000 (23:28 -0700)
Remove header dependency from cross-platform test.

Reviewed By: yota9

Differential Revision: https://reviews.llvm.org/D123107

bolt/test/AArch64/text-data.c

index bd633d0..ccba6e7 100644 (file)
@@ -8,13 +8,13 @@
 
 // CHECK: {{.*}} <arr>:
 
-#include <stdlib.h>
+extern void exit(int);
 
 typedef void (*FooPtr)();
 
 void exitOk() { exit(0); }
 
-__attribute__((section(".text"))) const FooPtr arr[] = {exitOk, NULL};
+__attribute__((section(".text"))) const FooPtr arr[] = {exitOk, 0};
 
 int main() {
   arr[0]();