1 // Address: https://github.com/llvm/llvm-project/issues/60275
5 // RUN: split-file %s %t
7 // RUN: %clang_cc1 -std=c++20 -triple %itanium_abi_triple -emit-module-interface %t/a.cppm -o %t/a.pcm
8 // RUN: %clang_cc1 -std=c++20 -triple %itanium_abi_triple %t/b.cpp -fmodule-file=a=%t/a.pcm -emit-llvm -o - | FileCheck %t/b.cpp
10 // Test again with reduced BMI
11 // RUN: %clang_cc1 -std=c++20 -triple %itanium_abi_triple -emit-reduced-module-interface %t/a.cppm -o %t/a.pcm
12 // RUN: %clang_cc1 -std=c++20 -triple %itanium_abi_triple %t/b.cpp -fmodule-file=a=%t/a.pcm -emit-llvm -o - | FileCheck %t/b.cpp
16 consteval void global() {}
39 // CHECK: define{{.*}}_ZN2bbC2Ev({{.*}}[[THIS:%.+]])
41 // CHECK-NEXT: [[THIS_ADDR:%.*]] = alloca ptr
42 // CHECK-NEXT: store ptr [[THIS]], ptr [[THIS_ADDR]]
43 // CHECK-NEXT: [[THIS1:%.*]] = load ptr, ptr [[THIS_ADDR]]
44 // CHECK-NEXT: [[M_ADDR:%.*]] = getelementptr{{.*}}%struct.bb, ptr [[THIS1]], i32 0, i32 0
45 // CHECK-NEXT: store i32 0, ptr [[M_ADDR]]