mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 16:33:37 +01:00
020f241883
automatically. Use -S with llvm-gcc rather than -c, so tests can work when llvm-gcc is really dragonegg (which can output IR with -S but not -c). llvm-svn: 120158
13 lines
333 B
C
13 lines
333 B
C
// RUN: %llvmgcc -O3 -S -o - %s | grep extern_weak
|
|
// RUN: %llvmgcc -O3 -S -o - %s | llc
|
|
|
|
#if !defined(__linux__) && !defined(__FreeBSD__) && \
|
|
!defined(__OpenBSD__) && !defined(__CYGWIN__) && !defined(__DragonFly__)
|
|
void foo() __attribute__((weak_import));
|
|
#else
|
|
void foo() __attribute__((weak));
|
|
#endif
|
|
|
|
void bar() { foo(); }
|
|
|