Chris Lattner | 9cb51ce | 2009-04-17 23:56:52 +0000 | [diff] [blame^] | 1 | // RUN: clang-cc -Eonly -verify %s |
Chris Lattner | c8f2d9a | 2009-02-04 19:47:38 +0000 | [diff] [blame] | 2 | # define HEADER <float.h> |
Chris Lattner | 706ab50 | 2007-07-23 04:56:47 +0000 | [diff] [blame] | 3 | |
| 4 | # include HEADER |
Chris Lattner | 9cb51ce | 2009-04-17 23:56:52 +0000 | [diff] [blame^] | 5 | |
| 6 | #include <limits.h> NON_EMPTY // expected-warning {{extra tokens at end of #include directive}} |
| 7 | |
| 8 | // PR3916: these are ok. |
| 9 | #define EMPTY |
| 10 | #include <limits.h> EMPTY |
| 11 | #include HEADER EMPTY |
| 12 | |
| 13 | // PR3916 |
| 14 | #define FN limits.h> |
| 15 | #include <FN |
| 16 | |
| 17 | #include <> // expected-error {{empty filename}} |