Files
clang-p2996/lld/test/elf/Inputs/shared.c
Alp Toker 32e8beff89 Fix a variety of typos in function names and comments
No change in functionality.

llvm-svn: 196053
2013-12-01 23:51:36 +00:00

17 lines
347 B
C

#include <stdio.h>
extern int i;
int i = 42;
// Undefined weak function in a dynamic library.
__attribute__((weak)) void weakfoo();
// Regular function in a dynamic library.
void foo() {
// Try to call weakfoo so that the reference to weekfoo will be included in
// the resulting .so file.
if (weakfoo)
weakfoo();
puts("Fooo!!");
}