blob: fff8fa0efcb6fae2c8a346b38fbc006f34ab550d [file] [log] [blame]
Daniel Dunbarf78925f2010-06-14 21:23:12 +00001// Check that we extract --no-demangle from '-Xlinker' and '-Wl,', since that
2// was a collect2 argument.
3
4// RUN: %clang --ccc-host-triple i386-apple-darwin9 -### \
5// RUN: -Xlinker one -Xlinker --no-demangle \
6// RUN: -Wl,two,--no-demangle,three -Xlinker four %s 2> %t
7// RUN: FileCheck < %t %s
8//
9// CHECK: "one" "two" "three" "four"