blob: 1581ffa9d5d7084eb0f798007b76c2054b9cf837 [file] [log] [blame]
Puyan Lotfi678e19d2019-06-20 18:28:21 +00001// REQUIRES: x86-registered-target
Puyan Lotfie7821922019-11-13 23:58:09 -05002// RUN: %clang_cc1 -triple x86_64-linux-gnu -o - -emit-interface-stubs \
Puyan Lotfi926f4f72019-08-22 23:44:34 +00003// RUN: -interface-stub-version=experimental-ifs-v1 %s | \
Puyan Lotfi68f29da2019-06-20 16:59:48 +00004// RUN: FileCheck %s
5
Puyan Lotfi68f29da2019-06-20 16:59:48 +00006// RUN: %clang -target x86_64-unknown-linux-gnu -o - -c %s | llvm-nm - 2>&1 | \
7// RUN: FileCheck -check-prefix=CHECK-SYMBOLS %s
8
9// CHECK: Symbols:
Puyan Lotfie7821922019-11-13 23:58:09 -050010// CHECK-DAG: "_Z8weakFuncv" : { Type: Func, Weak: true }
11// CHECK-DAG: "_Z10strongFuncv" : { Type: Func }
Puyan Lotfi68f29da2019-06-20 16:59:48 +000012
Puyan Lotfi68f29da2019-06-20 16:59:48 +000013// CHECK-SYMBOLS-DAG: _Z10strongFuncv
14// CHECK-SYMBOLS-DAG: _Z8weakFuncv
15__attribute__((weak)) void weakFunc() {}
16int strongFunc() { return 42; }