brintos

brintos / llvm-project-archived public Read only

0
0
Text · 514 B · 4246d86 Raw
24 lines · plain
1// RUN: rm -rf %t2// RUN: mkdir -p %t3// RUN: split-file %s %t4//5// RUN: %clang_cc1 -std=c++20 %t/M.cppm  -triple=x86_64-linux-gnu \6// RUN:     -emit-module-interface -o %t/M.pcm7// RUN: %clang_cc1 -std=c++20 %t/foo.cpp -fprebuilt-module-path=%t \8// RUN:      -triple=x86_64-linux-gnu  -emit-llvm -o - | FileCheck %t/foo.cpp9 10//--- M.cppm11export module M;12export struct S1 {13    consteval S1(int) {}14};15 16//--- foo.cpp17import M;18void foo() {19    struct S2 { S1 s = 0; };20    S2 s;21}22 23// CHECK-NOT: _ZNW1M2S1C1Ei24