blob: e1c2c232a9d8f7ccdb0d021aaf15e50bf4102ac9 [file] [log] [blame]
Puyan Lotfi678e19d2019-06-20 18:28:21 +00001// REQUIRES: x86-registered-target
Puyan Lotfic382d032019-10-08 15:23:14 +00002// RUN: %clang -target x86_64-linux-gnu -o - -emit-interface-stubs -emit-merged-ifs \
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; }