summaryrefslogtreecommitdiff
path: root/test/Driver
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2009-06-06 08:21:31 +0000
committerEd Schouten <ed@FreeBSD.org>2009-06-06 08:21:31 +0000
commit37f6c480c696a4a72c1701ee54624cc807aa80ba (patch)
tree06d57bb7679a2140aef96db7105a0bd5f16a4358 /test/Driver
parent2659aeb5e51fe27d24bbffad0d1851b39fed5e43 (diff)
Diffstat (limited to 'test/Driver')
-rw-r--r--test/Driver/flags.c6
-rw-r--r--test/Driver/redzone.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/test/Driver/flags.c b/test/Driver/flags.c
index 53f3995f394df..7c448fa6df5b0 100644
--- a/test/Driver/flags.c
+++ b/test/Driver/flags.c
@@ -1,9 +1,9 @@
// RUN: clang -ccc-host-triple i386-apple-darwin9 -### -S -msoft-float %s 2> %t.log &&
-// RUN: grep '"--soft-float"' %t.log &&
+// RUN: grep '"--no-implicit-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: grep '"--no-implicit-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
+// RUN: grep '"--no-implicit-float"' %t.log
diff --git a/test/Driver/redzone.c b/test/Driver/redzone.c
new file mode 100644
index 0000000000000..8709e71fb3667
--- /dev/null
+++ b/test/Driver/redzone.c
@@ -0,0 +1,6 @@
+// RUN: clang -mno-red-zone %s -S -emit-llvm -o %t.log &&
+// RUN: grep 'noredzone' %t.log
+// RUN: clang -mred-zone %s -S -emit-llvm -o %t.log &&
+// RUN: grep -v 'noredzone' %t.log
+
+int foo() { return 42; }