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.
7 // The test passes on i386 Darwin and fails on x86_64, hence unsupported instead of xfail.
14 int main(int argc
, char **argv
) {
16 fprintf(stderr
, "1\n");
19 if (argv
[1][0] == 's')
27 fprintf(stderr
, "2\n");