Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / kr-func-promote.c
blob96ed069beebf76644c585900bc6abc65a91244d3
1 // RUN: %clang_cc1 -triple i386-unknown-unknown %s -emit-llvm -o - | FileCheck %s
3 // CHECK: i32 @a(i32
4 int a();
5 int a(x) short x; {return x;}
7 // CHECK: void @b(double
8 // CHECK: %[[ADDR:.*]] = alloca float, align 4
9 // CHECK: %[[TRUNC:.*]] = fptrunc double %0 to float
10 // CHECK: store float %[[TRUNC]], ptr %[[ADDR]], align 4
11 void b();
12 void b(f) float f; {}