| Daniel Dunbar | 8fbe78f | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -E %s -fno-caret-diagnostics 2>&1 >/dev/null | grep 'file successfully included' | count 3 |
| Chris Lattner | 4a82a24 | 2009-02-04 19:38:12 +0000 | [diff] [blame] | 2 | |
| 3 | // XX expands to nothing. | ||||
| 4 | #define XX | ||||
| 5 | |||||
| 6 | // expand macros to get to file to include | ||||
| 7 | #define FILE "file_to_include.h" | ||||
| 8 | #include XX FILE | ||||
| 9 | |||||
| 10 | #include FILE | ||||
| 11 | |||||
| 12 | // normal include | ||||
| 13 | #include "file_to_include.h" | ||||
| 14 | |||||