[clang-tidy][modernize-use-starts-ends-with] Fix operator rewriting false negative...
[llvm-project.git] / clang / test / InterfaceStubs / weak.cpp
blob18f4ffcec7fc125a6a4dede4894690a197f4b8b5
1 // REQUIRES: x86-registered-target
2 // RUN: %clang_cc1 -triple x86_64-linux-gnu -o - -emit-interface-stubs \
3 // RUN: -interface-stub-version=ifs-v1 %s | \
4 // RUN: FileCheck %s
6 // RUN: %clang -target x86_64-unknown-linux-gnu -o - -c %s | llvm-nm - 2>&1 | \
7 // RUN: FileCheck -check-prefix=CHECK-SYMBOLS %s
9 // CHECK: Symbols:
10 // CHECK-DAG: - { Name: "_Z8weakFuncv", Type: Func, Weak: true }
11 // CHECK-DAG: - { Name: "_Z10strongFuncv", Type: Func }
13 // CHECK-SYMBOLS-DAG: _Z10strongFuncv
14 // CHECK-SYMBOLS-DAG: _Z8weakFuncv
15 __attribute__((weak)) void weakFunc() {}
16 int strongFunc() { return 42; }