blob: e2755b9b93515278dda2ee55e83b90519efd8d00 [file] [log] [blame]
// RUN: %clang -x c -o libfoo.so -emit-interface-stubs %s %S/object.c %S/weak.cpp && \
// RUN: llvm-nm libfoo.so 2>&1 | FileCheck %s
// RUN: %clang -x c -o libfoo.so -shared %s %S/object.c %S/weak.cpp && \
// RUN: llvm-nm libfoo.so 2>&1 | FileCheck %s
// CHECK-DAG: data
// CHECK-DAG: foo
// CHECK-DAG: strongFunc
// CHECK-DAG: weakFunc
int foo(int bar) { return 42 + 1844; }