blob: b4e5a9b08f4347e0d94964d07b434308a23ed027 [file] [log] [blame]
Daniel Dunbarfb3d7472010-06-14 21:23:12 +00001// Check that we extract --no-demangle from '-Xlinker' and '-Wl,', since that
2// was a collect2 argument.
3
Sebastian Pop422377c2012-01-20 22:01:23 +00004// RUN: %clang -target i386-apple-darwin9 -### \
Daniel Dunbarfb3d7472010-06-14 21:23:12 +00005// 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"