Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / pr25786.c
blob58b4a960419e54043336b43bc10fca1b5c3ff3d4
1 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm -o - %s | FileCheck %s
2 // RUN: %clang_cc1 -triple i686-unknown-linux-gnu -emit-llvm -o - %s | FileCheck %s --check-prefix=CHECK-OK
4 void (__attribute__((regparm(3), stdcall)) *pf) ();
5 void (__attribute__((regparm(2), stdcall)) foo)(int a) {
7 // CHECK: @pf ={{.*}} global ptr null
8 // CHECK: define{{.*}} void @foo(i32 noundef %a)
10 // CHECK-OK: @pf ={{.*}} global ptr null
11 // CHECK-OK: define{{.*}} x86_stdcallcc void @foo(i32 inreg noundef %a)