xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/2002-07-31-BadAssert.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm %s  -o /dev/null
2*f4a2713aSLionel Sambuc 
3*f4a2713aSLionel Sambuc typedef struct
4*f4a2713aSLionel Sambuc {
5*f4a2713aSLionel Sambuc         unsigned char type;        /* Indicates, NORMAL, SUBNORMAL, etc. */
6*f4a2713aSLionel Sambuc } InternalFPF;
7*f4a2713aSLionel Sambuc 
8*f4a2713aSLionel Sambuc 
SetInternalFPFZero(InternalFPF * dest)9*f4a2713aSLionel Sambuc static void SetInternalFPFZero(InternalFPF *dest) {
10*f4a2713aSLionel Sambuc   dest->type=0;
11*f4a2713aSLionel Sambuc }
12*f4a2713aSLionel Sambuc 
denormalize(InternalFPF * ptr)13*f4a2713aSLionel Sambuc void denormalize(InternalFPF *ptr) {
14*f4a2713aSLionel Sambuc    SetInternalFPFZero(ptr);
15*f4a2713aSLionel Sambuc }
16*f4a2713aSLionel Sambuc 
17