1// RUN: %clangxx_asan %s -o %t -Wl,--gc-sections -ffunction-sections -mllvm -asan-globals=0
2// RUN: %clangxx_asan %s -o %t -Wl,--gc-sections -ffunction-sections -mllvm -asan-globals=1
3
4// https://code.google.com/p/address-sanitizer/issues/detail?id=260
5// XFAIL: *
6
7int undefined();
8
9int (*unused)() = undefined;
10
11int main() {
12        return 0;
13}
14