[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git] / clang / test / Modules / merge-anon-in-extern_c.cpp
blob1443251f7e612fa914be6c60c18e81e7787e7256
1 // RUN: rm -rf %t
2 // RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -verify %s
3 // expected-no-diagnostics
5 #pragma clang module build sys_types
6 module sys_types {}
7 #pragma clang module contents
8 #pragma clang module begin sys_types
9 extern "C" {
10 typedef union { bool b; } pthread_mutex_t;
12 #pragma clang module end
13 #pragma clang module endbuild
15 typedef union { bool b; } pthread_mutex_t;
16 #pragma clang module import sys_types
18 const pthread_mutex_t *m;