brintos

brintos / llvm-project-archived public Read only

0
0
Text · 459 B · 1443251 Raw
20 lines · cpp
1// RUN: rm -rf %t2// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -verify %s3// expected-no-diagnostics4 5#pragma clang module build sys_types6module sys_types {}7#pragma clang module contents8#pragma clang module begin sys_types9extern "C" {10  typedef union { bool b; } pthread_mutex_t;11}12#pragma clang module end13#pragma clang module endbuild14 15typedef union { bool b; } pthread_mutex_t;16#pragma clang module import sys_types17 18const pthread_mutex_t *m;19 20