21 lines · cpp
1// RUN: %clang_cc1 -std=c++20 %s -triple %itanium_abi_triple -emit-llvm -o - | FileCheck %s2 3export module Foo;4 5// CHECK-DAG: @_ZW3Foo3ary =6int ary[2];7 8// CHECK-DAG: @_ZW3FooDC1a1bE =9export auto &[a, b] = ary;10 11namespace N {12// CHECK-DAG: @_ZN1NW3FooDC1a1bEE =13export auto &[a, b] = ary;14// CHECK-DAG: @_ZN1NW3FooDC1c1dEE =15auto &[c, d] = ary;16// FIXME: We mangle the module name here, as we give this ModuleInternalLinkage17// That's no longer needed.18// CHECK DAG: @_ZN1MDC1e1fEE =19static auto &__attribute__((used))[e, f] = ary;20} // namespace N21