diff options
Diffstat (limited to 'clang/test/InterfaceStubs/driver-test.c')
-rw-r--r-- | clang/test/InterfaceStubs/driver-test.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/InterfaceStubs/driver-test.c b/clang/test/InterfaceStubs/driver-test.c new file mode 100644 index 00000000000..d4e50295411 --- /dev/null +++ b/clang/test/InterfaceStubs/driver-test.c @@ -0,0 +1,11 @@ +// REQUIRES: x86-registered-target + +// RUN: %clang -target x86_64-unknown-linux-gnu -x c -o %t1.so -emit-interface-stubs %s %S/object.c %S/weak.cpp && \ +// RUN: llvm-nm %t1.so 2>&1 | FileCheck --check-prefix=CHECK-IFS %s + +// CHECK-IFS-DAG: data +// CHECK-IFS-DAG: foo +// CHECK-IFS-DAG: strongFunc +// CHECK-IFS-DAG: weakFunc + +int foo(int bar) { return 42 + 1844; } |