aboutsummaryrefslogtreecommitdiffstats
path: root/test/CFrontend/extern-weak.c
blob: ce9d77241b317612d6da8ae238fc17c4e6acf93f (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep extern_weak &&
// RUN: %llvmgcc -O3 -S -o - -emit-llvm | llvm-as | llc

#ifndef __linux__
void foo() __attribute__((weak_import));
#else
void foo() __attribute__((weak));
#endif

void bar() { foo(); }