summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/flags.c
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-30 18:13:26 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-30 18:13:26 +0000
commit13357aef140aa4ff82d350ba4fc21d12092c69b8 (patch)
treec2afc55bde84f32888766c98a8429ccf37c9214e /clang/test/Driver/flags.c
parent3b636c15e0b14bf5e07769806ef93dffa8399bb1 (diff)
downloadbcm5719-llvm-13357aef140aa4ff82d350ba4fc21d12092c69b8.tar.gz
bcm5719-llvm-13357aef140aa4ff82d350ba4fc21d12092c69b8.zip
Driver: Unbreak ArgList::hasFlag.
- <rdar://problem/6726511> [driver] clang does not have -msoft-float hooked up. llvm-svn: 68044
Diffstat (limited to 'clang/test/Driver/flags.c')
-rw-r--r--clang/test/Driver/flags.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Driver/flags.c b/clang/test/Driver/flags.c
new file mode 100644
index 00000000000..53f3995f394
--- /dev/null
+++ b/clang/test/Driver/flags.c
@@ -0,0 +1,9 @@
+// RUN: clang -ccc-host-triple i386-apple-darwin9 -### -S -msoft-float %s 2> %t.log &&
+// RUN: grep '"--soft-float"' %t.log &&
+
+// RUN: clang -ccc-host-triple i386-apple-darwin9 -### -S -msoft-float -mno-soft-float %s 2> %t.log &&
+// RUN: grep '"--soft-float"' %t.log | count 0 &&
+
+// RUN: clang -ccc-host-triple i386-apple-darwin9 -### -S -mno-soft-float %s -msoft-float 2> %t.log &&
+// RUN: grep '"--soft-float"' %t.log
+
OpenPOWER on IntegriCloud