xref: /llvm-project/clang/test/Modules/anon-linkage.cppm (revision d54888a3ebb141cdbb5e88ed7a3a2a54d24fc904)
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
8typedef 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
18module;
19#include "foo.h"
20export module M;
21export using ::mbstate;
22