Chris Lattner | 13d283d | 2010-02-12 08:03:27 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -E %s | FileCheck %s |
2 | // PR6282 | ||||
3 | // This test should not trigger the include guard optimization since | ||||
4 | // the guard macro is defined on the first include. | ||||
5 | |||||
6 | #define ITERATING 1 | ||||
7 | #define X 1 | ||||
8 | #include "mi_opt2.h" | ||||
9 | #undef X | ||||
10 | #define X 2 | ||||
11 | #include "mi_opt2.h" | ||||
12 | |||||
13 | // CHECK: b: 1 | ||||
14 | // CHECK: b: 2 | ||||
15 |