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
/
anon-linkage.cppm
blob
b590f4e89d18925248a1a8094d0c08a04da55886
1
// RUN: rm -rf %t
2
// RUN: mkdir %t
3
// RUN: split-file %s %t
4
//
5
// RUN: %clang_cc1 -std=c++20 %t/M.cppm -fsyntax-only -verify
6
7
//--- foo.h
8
typedef struct {
9
int c;
10
union {
11
int n;
12
char c[4];
13
} v;
14
} mbstate;
15
16
//--- M.cppm
17
// expected-no-diagnostics
18
module;
19
#include "foo.h"
20
export module M;
21
export using ::mbstate;