]>
Commit | Line | Data |
---|---|---|
223e47cc LB |
1 | // expected-warning 0-1 {{umbrella header}} |
2 | ||
3 | // FIXME: The "umbrella header" warning should be moved to a separate test. | |
4 | // This "0-1" is only here because the warning is only emitted when the | |
5 | // module is (otherwise) successfully included. | |
6 | ||
7 | #ifndef MODULE_H | |
8 | #define MODULE_H | |
9 | const char *getModuleVersion(void); | |
10 | ||
11 | #ifdef FOO | |
12 | # error Module should have been built without -DFOO | |
13 | #endif | |
14 | ||
15 | @interface Module | |
16 | +(const char *)version; // retrieve module version | |
17 | +alloc; | |
18 | @end | |
19 | ||
20 | #define MODULE_H_MACRO 1 | |
21 | #__private_macro MODULE_H_MACRO | |
22 | ||
23 | #include <Module/Sub.h> | |
24 | #include <Module/Buried/Treasure.h> | |
25 | ||
26 | #endif // MODULE_H |