summaryrefslogtreecommitdiffstats
path: root/clang/test/InterfaceStubs/driver-test2.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/InterfaceStubs/driver-test2.c')
-rw-r--r--clang/test/InterfaceStubs/driver-test2.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/InterfaceStubs/driver-test2.c b/clang/test/InterfaceStubs/driver-test2.c
new file mode 100644
index 00000000000..f0f889a799d
--- /dev/null
+++ b/clang/test/InterfaceStubs/driver-test2.c
@@ -0,0 +1,14 @@
+// REQUIRES: x86-registered-target
+
+// RUN: %clang -target x86_64-unknown-linux-gnu -c -emit-interface-stubs \
+// RUN: %s %S/object.c %S/weak.cpp
+// RUN: %clang -emit-interface-stubs -emit-merged-ifs \
+// RUN: driver-test2.o object.o weak.o -S -o - | FileCheck %s
+
+// CHECK-DAG: data
+// CHECK-DAG: bar
+// CHECK-DAG: strongFunc
+// CHECK-DAG: weakFunc
+
+int bar(int a) { return a; }
+int main() { return 0; }
OpenPOWER on IntegriCloud