Debian Codegraph @

clang/test/Modules/anon-linkage.cppm

raw
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;