]>
git.proxmox.com Git - rustc.git/blob - src/compiler-rt/test/cfi/icall/external-call.c
1 // RUN: %clang_cfi -lm -o %t1 %s
2 // RUN: %t1 c 1 2>&1 | FileCheck --check-prefix=CFI %s
3 // RUN: %t1 s 2 2>&1 | FileCheck --check-prefix=CFI %s
5 // This test uses jump tables containing PC-relative references to external
6 // symbols, which the Mach-O object writer does not currently support.
13 int main(int argc
, char **argv
) {
15 fprintf(stderr
, "1\n");
18 if (argv
[1][0] == 's')
26 fprintf(stderr
, "2\n");