brintos

brintos / llvm-project-archived public Read only

0
0
Text · 910 B · 9080890 Raw
22 lines · c
1// REQUIRES: x86-registered-target2 3// NOTE: -fno-integrated-cc1 has been added to work around an ASAN failure4//       caused by in-process cc1 invocation. Clang InterfaceStubs is not the5//       culprit, but Clang Interface Stubs' Driver pipeline setup uncovers an6//       existing ASAN issue when invoking multiple normal cc1 jobs along with7//       multiple Clang Interface Stubs cc1 jobs together.8//       There is currently a discussion of this going on at:9//         https://reviews.llvm.org/D6982510// RUN: mkdir -p %t; cd %t11// RUN: %clang -target x86_64-unknown-linux-gnu -x c -S \12// RUN:   -fno-integrated-cc1 \13// RUN: -emit-interface-stubs %s %S/object.c %S/weak.cpp && \14// RUN: llvm-nm -D %t/a.out.ifso 2>&1 | FileCheck --check-prefix=CHECK-IFS %s15 16// CHECK-IFS-DAG: data17// CHECK-IFS-DAG: foo18// CHECK-IFS-DAG: strongFunc19// CHECK-IFS-DAG: weakFunc20 21int foo(int bar) { return 42 + 1844; }22