Debian Codegraph @

clang/test/Modules/pr158321.cppm

raw
1 // RUN: rm -rf %t
2 // RUN: mkdir -p %t
3 // RUN: split-file %s %t
4 //
5 // RUN: %clang_cc1 -std=c++20 %t/m.cppm -emit-reduced-module-interface -o %t/m.pcm
6 // RUN: %clang_cc1 -std=c++20 %t/consumer.cpp -fprebuilt-module-path=%t -fsyntax-only -verify
7
8 //--- repro_header.h
9 namespace n
10 {
11 }
12
13 //--- m.cppm
14 module;
15 #include "repro_header.h"
16 export module m;
17 namespace n
18 {
19 int x;
20 }
21
22 //--- consumer.cpp
23 // expected-no-diagnostics
24 import m;
25 namespace n
26 {
27 }