Chris Lattner | cd22f81 | 2009-02-04 19:40:02 +0000 | [diff] [blame^] | 1 | |
| 2 | // RUN: clang -E %s -fno-caret-diagnostics 2>&1 >/dev/null | grep 'file successfully included' | count 3 |
Chris Lattner | 72650ad | 2009-02-04 19:38:12 +0000 | [diff] [blame] | 3 | |
| 4 | // XX expands to nothing. |
| 5 | #define XX |
| 6 | |
| 7 | // expand macros to get to file to include |
| 8 | #define FILE "file_to_include.h" |
| 9 | #include XX FILE |
| 10 | |
| 11 | #include FILE |
| 12 | |
| 13 | // normal include |
| 14 | #include "file_to_include.h" |
| 15 | |
| 16 | // Expand and paste angled strings. |
| 17 | # define HEADER <file_to_include.h> |
| 18 | # include HEADER |
| 19 | |