xref: /minix3/external/bsd/llvm/dist/clang/test/Modules/stddef.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: rm -rf %t
2*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -I%S/Inputs/StdDef %s -verify -fno-modules-error-recovery
3*0a6a1f1dSLionel Sambuc 
4*0a6a1f1dSLionel Sambuc #include "ptrdiff_t.h"
5*0a6a1f1dSLionel Sambuc 
6*0a6a1f1dSLionel Sambuc ptrdiff_t pdt;
7*0a6a1f1dSLionel Sambuc 
8*0a6a1f1dSLionel Sambuc size_t st; // expected-error {{must be imported}}
9*0a6a1f1dSLionel Sambuc // expected-note@stddef.h:* {{previous}}
10*0a6a1f1dSLionel Sambuc 
11*0a6a1f1dSLionel Sambuc #include "include_again.h"
12*0a6a1f1dSLionel Sambuc 
13*0a6a1f1dSLionel Sambuc size_t st2;
14