summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr36172.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/pr36172.c')
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr36172.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr36172.c b/gcc/testsuite/gcc.c-torture/compile/pr36172.c
new file mode 100644
index 000000000..aaee377f5
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/pr36172.c
@@ -0,0 +1,17 @@
+int f(float * );
+__SIZE_TYPE__ FcCharSetFreeze (int *fcs, int b)
+{
+ int i;
+ int a = 0;
+ for (i = 0; i < *fcs; i++)
+ {
+ float *leaf = (float *)fcs;
+ int hash = f (leaf);
+ if (hash)
+ a = b;
+ if (!a)
+ return;
+ }
+ return (__SIZE_TYPE__) fcs;
+}
+