diff options
-rw-r--r-- | clang/test/InterfaceStubs/driver-test.c | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/clang/test/InterfaceStubs/driver-test.c b/clang/test/InterfaceStubs/driver-test.c index e2755b9b935..12606affb74 100644 --- a/clang/test/InterfaceStubs/driver-test.c +++ b/clang/test/InterfaceStubs/driver-test.c @@ -1,12 +1,19 @@ -// 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 +// REQUIRES: x86-registered-target -// RUN: %clang -x c -o libfoo.so -shared %s %S/object.c %S/weak.cpp && \ -// RUN: llvm-nm libfoo.so 2>&1 | FileCheck %s +// 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-DAG: data -// CHECK-DAG: foo -// CHECK-DAG: strongFunc -// CHECK-DAG: weakFunc +// RUN: %clang -target x86_64-unknown-linux-gnu -x c -o %t2.so -shared %s %S/object.c %S/weak.cpp && \ +// RUN: llvm-nm %t2.so 2>&1 | FileCheck --check-prefix=CHECK-SO %s -int foo(int bar) { return 42 + 1844; }
\ No newline at end of file +// CHECK-IFS-DAG: data +// CHECK-IFS-DAG: foo +// CHECK-IFS-DAG: strongFunc +// CHECK-IFS-DAG: weakFunc + +// CHECK-SO-DAG: data +// CHECK-SO-DAG: foo +// CHECK-SO-DAG: strongFunc +// CHECK-SO-DAG: weakFunc + +int foo(int bar) { return 42 + 1844; } |