diff options
Diffstat (limited to 'clang/test/InterfaceStubs/weak.cpp')
| -rw-r--r-- | clang/test/InterfaceStubs/weak.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/clang/test/InterfaceStubs/weak.cpp b/clang/test/InterfaceStubs/weak.cpp deleted file mode 100644 index e089225b5d6..00000000000 --- a/clang/test/InterfaceStubs/weak.cpp +++ /dev/null @@ -1,27 +0,0 @@ -// RUN: %clang -target x86_64-linux-gnu -o - -emit-interface-stubs \ -// RUN: -interface-stub-version=experimental-tapi-elf-v1 %s | \ -// RUN: FileCheck %s - -// RUN: %clang -target x86_64-linux-gnu -o - -emit-interface-stubs \ -// RUN: -interface-stub-version=experimental-yaml-elf-v1 %s | \ -// RUN: FileCheck --check-prefix=CHECK-YAML %s - -// RUN: %clang -target x86_64-unknown-linux-gnu -o - -c %s | llvm-nm - 2>&1 | \ -// RUN: FileCheck -check-prefix=CHECK-SYMBOLS %s - -// CHECK: Symbols: -// CHECK-DAG: _Z8weakFuncv: { Type: Func, Weak: true } -// CHECK-DAG: _Z10strongFuncv: { Type: Func } - -// CHECK-YAML: Symbols: -// CHECK-YAML-DAG: - Name: _Z8weakFuncv -// CHECK-YAML-DAG: Type: STT_FUNC -// CHECK-YAML-DAG: Binding: STB_WEAK -// CHECK-YAML-DAG: - Name: _Z10strongFuncv -// CHECK-YAML-DAG: Type: STT_FUNC -// CHECK-YAML-DAG: Binding: STB_GLOBAL - -// CHECK-SYMBOLS-DAG: _Z10strongFuncv -// CHECK-SYMBOLS-DAG: _Z8weakFuncv -__attribute__((weak)) void weakFunc() {} -int strongFunc() { return 42; } |

