Author: Puyan Lotfi Date: 2019-11-19T21:59:10-05:00 New Revision: 27b229dc17b2ea1d06fe566df8631bb2fff7b1c8
URL: https://github.com/llvm/llvm-project/commit/27b229dc17b2ea1d06fe566df8631bb2fff7b1c8 DIFF: https://github.com/llvm/llvm-project/commit/27b229dc17b2ea1d06fe566df8631bb2fff7b1c8.diff LOG: Revert "[clang][IFS][test] Removing driver-test.c. Test is still too brittle." This reverts commit f37356d6f60ae5db978611621d3a375ed87ec0f0. Added: clang/test/InterfaceStubs/driver-test.c Modified: Removed: ################################################################################ diff --git a/clang/test/InterfaceStubs/driver-test.c b/clang/test/InterfaceStubs/driver-test.c new file mode 100644 index 000000000000..425d87271f33 --- /dev/null +++ b/clang/test/InterfaceStubs/driver-test.c @@ -0,0 +1,15 @@ +// REQUIRES: x86-registered-target +// REQUIRES: !powerpc-registered-target +// REQUIRES: !system-darwin && !system-windows + +// RUN: %clang -o %t1 -target x86_64-unknown-linux-gnu \ +// RUN: -emit-interface-stubs -emit-merged-ifs %s %S/object.c %S/weak.cpp +// RUN: cat %t1.ifs | FileCheck %s + +// CHECK-DAG: data +// CHECK-DAG: foo +// CHECK-DAG: strongFunc +// CHECK-DAG: weakFunc + +int foo(int bar) { return 42 + 1844; } +int main() { return foo(23); } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits