clang/test/Modules/pr38554.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 -fsyntax-only -verify %t/c.cppm |
| 6 | |
| 7 | //--- a.hpp |
| 8 | #pragma once |
| 9 | using a = int; |
| 10 | |
| 11 | //--- b.hpp |
| 12 | #pragma once |
| 13 | #include "a.hpp" |
| 14 | a b; |
| 15 | |
| 16 | //--- c.cppm |
| 17 | // expected-no-diagnostics |
| 18 | module; |
| 19 | #include "b.hpp" |
| 20 | export module c; |
| 21 | export using ::a; |