Debian Codegraph @

clang/test/Modules/include-after-imports-enums.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-module-interface -o %t/M.pcm
6 // RUN: %clang_cc1 -std=c++20 %t/use.cpp -fprebuilt-module-path=%t -verify -fsyntax-only
7 //
8 // RUN: %clang_cc1 -std=c++20 %t/M.cppm -emit-reduced-module-interface -o %t/M.pcm
9 // RUN: %clang_cc1 -std=c++20 %t/use.cpp -fprebuilt-module-path=%t -verify -fsyntax-only
10
11 //--- enum.h
12 enum E { Value };
13
14 //--- M.cppm
15 module;
16 #include "enum.h"
17 export module M;
18 auto e = Value;
19
20 //--- use.cpp
21 // expected-no-diagnostics
22 import M;
23 #include "enum.h"
24
25 auto e = Value;