[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / pr11797.cpp
blobb6165365db6405d9c21a23621b83678df5c085be
1 // RUN: %clang_cc1 %s -fvisibility=hidden -triple %itanium_abi_triple -emit-llvm -o - | FileCheck %s
3 namespace std __attribute__ ((__visibility__ ("default"))) {}
4 #pragma GCC visibility push(default)
5 void foo() {
7 #pragma GCC visibility pop
8 // CHECK-LABEL: define {{.*}}void @_Z3foov()