1 // REQUIRES: x86-registered-target
2 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -o - -emit-interface-stubs %s | \
3 // RUN: FileCheck -check-prefix=CHECK-TAPI %s
5 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -o - -emit-interface-stubs %s | \
6 // RUN: FileCheck -check-prefix=CHECK-TAPI2 %s
8 // RUN: %clang -target x86_64-unknown-linux-gnu -c -o - %s | llvm-readelf -s - 2>&1 | \
9 // RUN: FileCheck -check-prefix=CHECK-SYMBOLS %s
15 // n::S<int>::func() const
16 // n::S<int>::S(n::S<int> const&)
18 // We expect these manglings:
19 // CHECK-TAPI: Symbols:
20 // CHECK-TAPI-NOT: _ZNK1n1SIiEclEv
21 // CHECK-TAPI2: Symbols:
24 // CHECK-SYMBOLS-DAG: FUNC GLOBAL DEFAULT {{[0-9]}} _Z1g
25 // CHECK-SYMBOLS-DAG: FUNC WEAK HIDDEN {{[0-9]}} _ZNK1n1SIiEclEv
29 struct __attribute__((__visibility__("default"))) S
{
32 int __attribute__((__visibility__(("default")))) func() const {
35 int __attribute__((__visibility__(("hidden")))) operator()() const {
41 void g() { n::S
<int>()(); }