brintos

brintos / llvm-project-archived public Read only

0
0
Text · 818 B · 7299823 Raw
38 lines · c
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 the5// module is (otherwise) successfully included.6 7#ifndef MODULE_H8#define MODULE_H9const char *getModuleVersion(void);10 11#ifdef FOO12#  error Module should have been built without -DFOO13#endif14 15@interface Module16+(const char *)version; // retrieve module version17+alloc;18@end19 20#define MODULE_H_MACRO 121#__private_macro MODULE_H_MACRO22 23#include <Module/Sub.h>24#include <Module/Buried/Treasure.h>25 26__asm("foo");27 28typedef	struct __sFILE {29  int _offset;30} FILE;31 32extern FILE *myFile;33 34#define SOME_MACRO_ATTR_GETTING_UNDEFINED __attribute__((objc_method_family(none)))35#undef SOME_MACRO_ATTR_GETTING_UNDEFINED36 37#endif // MODULE_H38