Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / packed-stack.c
blobeaf00a7f8b0e3a4147c161de0de37092834640a0
1 // RUN: %clang_cc1 -mpacked-stack -triple s390x-ibm-linux -emit-llvm \
2 // RUN: -o - %s 2>&1 | FileCheck %s
3 // RUN: not %clang_cc1 -mpacked-stack -triple x86_64-linux-gnu \
4 // RUN: -emit-llvm -o - %s 2>&1 | FileCheck -check-prefix=X86 %s
6 int foo(void) {
7 return 0;
10 //CHECK: attributes #0 = { {{.*}}"packed-stack" {{.*}} }
11 //X86: error: option '-mpacked-stack' cannot be specified on this target