Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc %s -fsyntax-only |
Nuno Lopes | 0049db6 | 2008-06-01 18:31:24 +0000 | [diff] [blame] | 2 | |
| 3 | #ifndef XVID_AUTO_INCLUDE |
| 4 | |
| 5 | #define XVID_AUTO_INCLUDE |
| 6 | #define FUNC_H H_Pass_16_C |
| 7 | #include "multiple-include.c" |
| 8 | |
| 9 | #define FUNC_H H_Pass_8_C |
| 10 | |
| 11 | #include "multiple-include.c" |
| 12 | #undef XVID_AUTO_INCLUDE |
| 13 | |
| 14 | typedef void ff(); |
| 15 | typedef struct { ff *a;} S; |
| 16 | |
| 17 | S s = { H_Pass_8_C }; |
| 18 | |
| 19 | #endif |
| 20 | |
| 21 | #if defined(XVID_AUTO_INCLUDE) && defined(REFERENCE_CODE) |
| 22 | #elif defined(XVID_AUTO_INCLUDE) && !defined(REFERENCE_CODE) |
| 23 | |
| 24 | static void FUNC_H(){}; |
| 25 | #undef FUNC_H |
| 26 | |
| 27 | #endif |