[PATCH] D123107: [BOLT][test] Fix AArch64 test

Maksim Panchenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 4 23:24:22 PDT 2022


maksfb created this revision.
maksfb added reviewers: yota9, Amir, ayermolo, rafauler.
Herald added a subscriber: kristof.beyls.
Herald added a project: All.
maksfb requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Remove header dependency from cross-platform test.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D123107

Files:
  bolt/test/AArch64/text-data.c


Index: bolt/test/AArch64/text-data.c
===================================================================
--- bolt/test/AArch64/text-data.c
+++ bolt/test/AArch64/text-data.c
@@ -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]();


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123107.420388.patch
Type: text/x-patch
Size: 496 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220405/7e4081ff/attachment.bin>


More information about the llvm-commits mailing list