Files
swift-mirror/test/IRGen/Inputs/c_functions.h
Arnold Schwaighofer 9ddf115b0a IRGen: Don't try to emit non-global variables of imported inline c functions
The previous check would fail because isExternallyVisible() is false for local
static variables with internal linkage.

rdar://29937443
2017-01-18 11:05:20 -08:00

12 lines
310 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);
}