brintos

brintos / llvm-project-archived public Read only

0
0
Text · 292 B · 4073991 Raw
16 lines · c
1// Test that weak symbols stay weak.2// RUN: %clang_cfi -lm -o %t1 %s && %t13// XFAIL: darwin4 5__attribute__((weak)) void does_not_exist(void);6 7__attribute__((noinline))8void foo(void (*p)(void)) {9  p();10}11 12int main(int argc, char **argv) {13  if (does_not_exist)14    foo(does_not_exist);15}16