teak-llvm/clang/test/Driver/darwin-ld-demangle.c
Hans Wennborg c4f5b046ad CMake: Set HOST_LINK_VERSION on Darwin (PR21268)
The Autoconf build already does this, but it was never ported to
CMake. The host linker version affects the flags that Clang pass
to the linker, notably whether it passes -demangle or not.

http://reviews.llvm.org/D6239

llvm-svn: 221844
2014-11-13 00:35:23 +00:00

9 lines
252 B
C

// REQUIRES: system-darwin
// On Darwin, -demangle is passed to the linker of HOST_LINK_VERSION
// is high enough. It is assumed to be high enough on systems where
// this test gets run.
// RUN: %clang -### %s 2>&1 | FileCheck %s
// CHECK: -demangle