xref: /minix3/external/bsd/llvm/dist/clang/test/Preprocessor/include-directive2.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -ffreestanding -Eonly -verify %s
2*f4a2713aSLionel Sambuc #  define HEADER <stdarg.h>
3*f4a2713aSLionel Sambuc 
4*f4a2713aSLionel Sambuc #  include HEADER
5*f4a2713aSLionel Sambuc 
6*f4a2713aSLionel Sambuc #include <limits.h> NON_EMPTY // expected-warning {{extra tokens at end of #include directive}}
7*f4a2713aSLionel Sambuc 
8*f4a2713aSLionel Sambuc // PR3916: these are ok.
9*f4a2713aSLionel Sambuc #define EMPTY
10*f4a2713aSLionel Sambuc #include <limits.h> EMPTY
11*f4a2713aSLionel Sambuc #include HEADER  EMPTY
12*f4a2713aSLionel Sambuc 
13*f4a2713aSLionel Sambuc // PR3916
14*f4a2713aSLionel Sambuc #define FN limits.h>
15*f4a2713aSLionel Sambuc #include <FN
16*f4a2713aSLionel Sambuc 
17*f4a2713aSLionel Sambuc #include <>    // expected-error {{empty filename}}
18