forked from OSchip/llvm-project
[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:
parent
5adc94bb8a
commit
163e188e3e
|
@ -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]();
|
||||
|
|
Loading…
Reference in New Issue