llvm-capstone/clang/test/Modules/anon-linkage.cppm
Chuanqi Xu d54888a3eb [Modules] Refactor modules-ts tests to use standard c++ modules
We're going to remove the support for modules-ts. But there are a lot of
tests which uses -fmodules-ts. We shouldn't remove them simply. This
patch refactor these tests to use standard c++ modules.
2023-02-16 14:05:16 +08:00

22 lines
325 B
C++

// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: split-file %s %t
//
// RUN: %clang_cc1 -std=c++20 %t/M.cppm -fsyntax-only -verify
//--- foo.h
typedef struct {
int c;
union {
int n;
char c[4];
} v;
} mbstate;
//--- M.cppm
// expected-no-diagnostics
module;
#include "foo.h"
export module M;
export using ::mbstate;