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 | \
6 // RUN: %clang -target x86_64-unknown-linux-gnu -o - -c %s | llvm-nm - 2>&1 | \
7 // RUN: FileCheck -check-prefix=CHECK-SYMBOLS %s
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; }