[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / cxx20-module-decomp-1.cpp
blobe14f02a9e78ff24bdb2bd26779ce5cc4fe82de6e
1 // RUN: %clang_cc1 -std=c++20 %s -triple %itanium_abi_triple -emit-llvm -o - | FileCheck %s
3 export module Foo;
5 // CHECK-DAG: @_ZW3Foo3ary =
6 int ary[2];
8 // CHECK-DAG: @_ZW3FooDC1a1bE =
9 export auto &[a, b] = ary;
11 namespace N {
12 // CHECK-DAG: @_ZN1NW3FooDC1a1bEE =
13 export auto &[a, b] = ary;
14 // CHECK-DAG: @_ZN1NW3FooDC1c1dEE =
15 auto &[c, d] = ary;
16 // FIXME: We mangle the module name here, as we give this ModuleInternalLinkage
17 // That's no longer needed.
18 // CHECK DAG: @_ZN1MDC1e1fEE =
19 static auto &__attribute__((used))[e, f] = ary;
20 } // namespace N