Module.h 621 B

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