Files
swift-mirror/test/IRGen/Inputs/c_functions.h
John McCall c893e955aa Propagate "-O" to Clang (as "-Os").
It affects Clang IRGen, among other things.
2017-07-26 00:32:08 -04:00

27 lines
560 B
C

// This header is included on non-ObjC platforms.
void overloaded(void) __attribute__((overloadable));
void overloaded(int) __attribute__((overloadable));
extern void use(const char *);
static inline void test_my_log() {
__attribute__((internal_linkage)) static const char fmt[] = "foobar";
use(fmt);
}
extern void useInt(unsigned int);
typedef struct {
unsigned int val[8];
} a_thing;
static inline void log_a_thing(const a_thing thing) {
useInt(thing.val[0]);
useInt(thing.val[7]);
}
static inline unsigned int return7(void) {
return 7;
}