summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/packed-stack.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/packed-stack.c')
-rw-r--r--clang/test/CodeGen/packed-stack.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/CodeGen/packed-stack.c b/clang/test/CodeGen/packed-stack.c
new file mode 100644
index 00000000000..eaf00a7f8b0
--- /dev/null
+++ b/clang/test/CodeGen/packed-stack.c
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -mpacked-stack -triple s390x-ibm-linux -emit-llvm \
+// RUN: -o - %s 2>&1 | FileCheck %s
+// RUN: not %clang_cc1 -mpacked-stack -triple x86_64-linux-gnu \
+// RUN: -emit-llvm -o - %s 2>&1 | FileCheck -check-prefix=X86 %s
+
+int foo(void) {
+ return 0;
+}
+
+//CHECK: attributes #0 = { {{.*}}"packed-stack" {{.*}} }
+//X86: error: option '-mpacked-stack' cannot be specified on this target
OpenPOWER on IntegriCloud