summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/2002-07-31-BadAssert.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/2002-07-31-BadAssert.c')
-rw-r--r--clang/test/CodeGen/2002-07-31-BadAssert.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/clang/test/CodeGen/2002-07-31-BadAssert.c b/clang/test/CodeGen/2002-07-31-BadAssert.c
new file mode 100644
index 0000000..512a63a
--- /dev/null
+++ b/clang/test/CodeGen/2002-07-31-BadAssert.c
@@ -0,0 +1,16 @@
+// RUN: %clang_cc1 -emit-llvm %s -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);
+}
+