| 1 | #ifndef J_H |
|---|---|
| 2 | #define J_H |
| 3 | |
| 4 | #define STR(x) #x |
| 5 | #define HDR(x) STR(x.h) |
| 6 | |
| 7 | #include ALLOWED_INC |
| 8 | #include HDR(a) |
| 9 | |
| 10 | const int j = a * a + b; |
| 11 | |
| 12 | // expected-no-diagnostics |
| 13 | |
| 14 | #endif |
| 15 |
| 1 | #ifndef J_H |
|---|---|
| 2 | #define J_H |
| 3 | |
| 4 | #define STR(x) #x |
| 5 | #define HDR(x) STR(x.h) |
| 6 | |
| 7 | #include ALLOWED_INC |
| 8 | #include HDR(a) |
| 9 | |
| 10 | const int j = a * a + b; |
| 11 | |
| 12 | // expected-no-diagnostics |
| 13 | |
| 14 | #endif |
| 15 |