[BOLT][test] Fix AArch64 test

Remove header dependency from cross-platform test.

Reviewed By: yota9

Differential Revision: https://reviews.llvm.org/D123107
This commit is contained in:
Maksim Panchenko 2022-04-04 23:20:32 -07:00
parent 5adc94bb8a
commit 163e188e3e
1 changed files with 2 additions and 2 deletions

View 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]();