aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/CFrontend/2002-07-31-BadAssert.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CFrontend/2002-07-31-BadAssert.c b/test/CFrontend/2002-07-31-BadAssert.c
new file mode 100644
index 0000000000..9c4e5f67e6
--- /dev/null
+++ b/test/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);
+}
+