xref: /minix3/external/bsd/llvm/dist/clang/test/Modules/Inputs/macros.h (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc #define MODULE
2*f4a2713aSLionel Sambuc #define INTEGER(X) int
3*f4a2713aSLionel Sambuc #define FLOAT float
4*f4a2713aSLionel Sambuc #define DOUBLE double
5*f4a2713aSLionel Sambuc 
6*f4a2713aSLionel Sambuc #__public_macro INTEGER
7*f4a2713aSLionel Sambuc #__private_macro FLOAT
8*f4a2713aSLionel Sambuc #__private_macro MODULE
9*f4a2713aSLionel Sambuc 
10*f4a2713aSLionel Sambuc int (INTEGER);
11*f4a2713aSLionel Sambuc 
12*f4a2713aSLionel Sambuc #if !__building_module(macros)
13*f4a2713aSLionel Sambuc #  error Can't include this header without building the 'macros' module.
14*f4a2713aSLionel Sambuc #endif
15*f4a2713aSLionel Sambuc 
16*f4a2713aSLionel Sambuc #ifdef __MODULE__
17*f4a2713aSLionel Sambuc extern int __MODULE__;
18*f4a2713aSLionel Sambuc #endif
19*f4a2713aSLionel Sambuc 
20