| 1 |
// RUN: %clang_cc1 -std=c++20 %s -triple %itanium_abi_triple -emit-llvm -o - | FileCheck %s |
| 2 |
|
| 3 |
export module Foo; |
| 4 |
|
| 5 |
// CHECK-DAG: @_ZW3Foo3ary = |
| 6 |
int ary[2]; |
| 7 |
|
| 8 |
// CHECK-DAG: @_ZW3FooDC1a1bE = |
| 9 |
export auto &[a, b] = ary; |
| 10 |
|
| 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 |