summaryrefslogtreecommitdiffstats
path: root/test/FrontendC/2002-07-31-BadAssert.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/FrontendC/2002-07-31-BadAssert.c')
-rw-r--r--test/FrontendC/2002-07-31-BadAssert.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/FrontendC/2002-07-31-BadAssert.c b/test/FrontendC/2002-07-31-BadAssert.c
new file mode 100644
index 0000000..5801d03
--- /dev/null
+++ b/test/FrontendC/2002-07-31-BadAssert.c
@@ -0,0 +1,16 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
+typedef struct
+{
+ unsigned char type; /* Indicates, NORMAL, SUBNORMAL, etc. */
+} InternalFPF;
+
+
+static void SetInternalFPFZero(InternalFPF *dest) {
+ dest->type=0;
+}
+
+void denormalize(InternalFPF *ptr) {
+ SetInternalFPFZero(ptr);
+}
+