mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-02 13:26:06 +00:00

I've been working on a new tool, llvm-ifs, for merging interface stub files generated by clang and I've iterated on my derivative format of TBE to a newer format. llvm-ifs will only support the new format, so I am going to drop the older experimental interface stubs formats in this commit to make things simpler. Differential Revision: https://reviews.llvm.org/D66573 llvm-svn: 369719
17 lines
584 B
C++
17 lines
584 B
C++
// REQUIRES: x86-registered-target
|
|
// RUN: %clang -target x86_64-linux-gnu -o - -emit-interface-stubs \
|
|
// RUN: -interface-stub-version=experimental-ifs-v1 %s | \
|
|
// RUN: FileCheck %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-SYMBOLS-DAG: _Z10strongFuncv
|
|
// CHECK-SYMBOLS-DAG: _Z8weakFuncv
|
|
__attribute__((weak)) void weakFunc() {}
|
|
int strongFunc() { return 42; }
|