brintos

brintos / llvm-project-archived public Read only

0
0
Text · 989 B · 6c0eb00 Raw
25 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 -c -emit-interface-stubs \12// RUN:   -fno-integrated-cc1 \13// RUN:   %s %S/object.c %S/weak.cpp14// RUN: %clang -emit-interface-stubs -emit-merged-ifs \15// RUN:   -fno-integrated-cc1 \16// RUN:   %t/driver-test2.o %t/object.o %t/weak.o -S -o - 2>&1 | FileCheck %s17 18// CHECK-DAG: data19// CHECK-DAG: bar20// CHECK-DAG: strongFunc21// CHECK-DAG: weakFunc22 23int bar(int a) { return a; }24int main() { return 0; }25