From f4ef97c59fc3351b0d780831d7d325b0f7ae2a80 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 31 Jul 2002 17:39:38 +0000 Subject: [PATCH] Testcase that was triggering an incorrect assertion failure llvm-svn: 3180 --- .../Regression/CFrontend/2002-07-31-BadAssert.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 llvm/test/Regression/CFrontend/2002-07-31-BadAssert.c diff --git a/llvm/test/Regression/CFrontend/2002-07-31-BadAssert.c b/llvm/test/Regression/CFrontend/2002-07-31-BadAssert.c new file mode 100644 index 000000000000..9c4e5f67e689 --- /dev/null +++ b/llvm/test/Regression/CFrontend/2002-07-31-BadAssert.c @@ -0,0 +1,14 @@ +typedef struct +{ + unsigned char type; /* Indicates, NORMAL, SUBNORMAL, etc. */ +} InternalFPF; + + +static void SetInternalFPFZero(InternalFPF *dest) { + dest->type=0; +} + +void denormalize(InternalFPF *ptr) { + SetInternalFPFZero(ptr); +} +