Skip to content

Commit

Permalink
[BOLT][test] Fix AArch64 test
Browse files Browse the repository at this point in the history
Remove header dependency from cross-platform test.

Reviewed By: yota9

Differential Revision: https://reviews.llvm.org/D123107
  • Loading branch information
maksfb committed Apr 5, 2022
1 parent 5adc94b commit 163e188
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bolt/test/AArch64/text-data.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]();
Expand Down

0 comments on commit 163e188

Please sign in to comment.