]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/asan/TestCases/Linux/globals-gc-sections.cc
Vendor import of compiler-rt trunk r256633:
[FreeBSD/FreeBSD.git] / test / asan / TestCases / Linux / globals-gc-sections.cc
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
7 int undefined();
8
9 int (*unused)() = undefined;
10
11 int main() {
12         return 0;
13 }