summaryrefslogtreecommitdiff
path: root/clang/test/Driver/redzone.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Driver/redzone.c')
-rw-r--r--clang/test/Driver/redzone.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Driver/redzone.c b/clang/test/Driver/redzone.c
new file mode 100644
index 0000000..7d6d424
--- /dev/null
+++ b/clang/test/Driver/redzone.c
@@ -0,0 +1,6 @@
+// RUN: %clang -target i386-unknown-unknown -mno-red-zone %s -S -emit-llvm -o %t.log
+// RUN: grep 'noredzone' %t.log
+// RUN: %clang -target i386-unknown-unknown -mred-zone %s -S -emit-llvm -o %t.log
+// RUN: grep -v 'noredzone' %t.log
+
+int foo() { return 42; }