summaryrefslogtreecommitdiff
path: root/clang/test/Driver/stackrealign.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Driver/stackrealign.c')
-rw-r--r--clang/test/Driver/stackrealign.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Driver/stackrealign.c b/clang/test/Driver/stackrealign.c
new file mode 100644
index 0000000..c5221d6
--- /dev/null
+++ b/clang/test/Driver/stackrealign.c
@@ -0,0 +1,12 @@
+// RUN: %clang -### %s 2>&1 | FileCheck %s -check-prefix=NORMAL
+// NORMAL-NOT: -force-align-stack
+// NORMAL: -mstackrealign
+
+// RUN: %clang -### -mstackrealign %s 2>&1 | FileCheck %s -check-prefix=MREALIGN
+// MREALIGN: -force-align-stack
+// MREALIGN: -mstackrealign
+
+// RUN: %clang -### -mno-stackrealign %s 2>&1 | \
+// RUN: FileCheck %s -check-prefix=MNOREALIGN
+// MNOREALIGN-NOT: -force-align-stack
+// MNOREALIGN-NOT: -mstackrealign