blob: 13b7e5aa29383b70fb13dd1217f033ec58f53457 [file] [log] [blame]
Puyan Lotfi678e19d2019-06-20 18:28:21 +00001// REQUIRES: x86-registered-target
Puyan Lotfi68f29da2019-06-20 16:59:48 +00002// RUN: %clang -target 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:
10// CHECK-DAG: _Z8weakFuncv: { Type: Func, Weak: true }
11// CHECK-DAG: _Z10strongFuncv: { Type: Func }
12
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; }