blob: 425d87271f3348649e4d0fb568abdbca3aaed921 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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); }
|