mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The previous check would fail because isExternallyVisible() is false for local static variables with internal linkage. rdar://29937443
12 lines
310 B
C
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);
|
|
}
|