repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git]
/
clang
/
test
/
Modules
/
pr38554.cppm
blob
0193e5b0e06115fa1a1a51f1774d9fbe5511e9f2
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;