summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/weak-incomplete.c
blob: a15dbac03cb7a4d3f8f34c6e836282f8008a1a77 (plain)
1
2
3
4
5
// RUN: clang-cc -emit-llvm < %s | grep 'extern_weak' | count 1

struct S;
void __attribute__((weak)) foo1(struct S);
void (*foo2)(struct S) = foo1;
OpenPOWER on IntegriCloud