mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
27 lines
560 B
C
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;
|
|
}
|