summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr32372.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/pr32372.c')
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr32372.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr32372.c b/gcc/testsuite/gcc.c-torture/compile/pr32372.c
new file mode 100644
index 000000000..cead1ca00
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/pr32372.c
@@ -0,0 +1,21 @@
+typedef struct AVCodecContext
+{
+ int flags;
+ void *priv_data;
+ char codec_name[32];
+}
+AVCodecContext;
+typedef struct ScanTable
+{
+ int obmc;
+ int umvplus;
+ int h263_aic;
+}
+MpegEncContext;
+MPV_encode_init (AVCodecContext *avctx)
+{
+ MpegEncContext *s = avctx->priv_data;
+ s->umvplus = (avctx->flags & 0x02000000) ? 1 : 0;
+ s->h263_aic = (avctx->flags & 0x01000000) ? 1 : 0;
+ s->h263_aic = s->obmc || s->umvplus;
+}