Testcase that was triggering an incorrect assertion failure
authorChris Lattner <sabre@nondot.org>
Wed, 31 Jul 2002 17:39:38 +0000 (17:39 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 31 Jul 2002 17:39:38 +0000 (17:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3180 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2002-07-31-BadAssert.c [new file with mode: 0644]

diff --git a/test/CFrontend/2002-07-31-BadAssert.c b/test/CFrontend/2002-07-31-BadAssert.c
new file mode 100644 (file)
index 0000000..9c4e5f6
--- /dev/null
@@ -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);
+}
+