aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2021-01-05 20:53:40 -0500
committerDavid Malcolm <dmalcolm@redhat.com>2021-01-05 20:53:40 -0500
commit23fc2be633c61f24a4fbd4096c669e7147ca44ae (patch)
tree340ff277571de613ec6e477425000c87b3a6698b
parentdf1eba3ceada6e8990c00ccfa6c5a2c9b1c13334 (diff)
downloadgcc-23fc2be633c61f24a4fbd4096c669e7147ca44ae.zip
gcc-23fc2be633c61f24a4fbd4096c669e7147ca44ae.tar.gz
gcc-23fc2be633c61f24a4fbd4096c669e7147ca44ae.tar.bz2
analyzer: add regression test for PR 98073
This ICE was fixed by r11-2694-g808f4dfeb3a95f50 (aka the big state rewrite for GCC 11). gcc/testsuite/ChangeLog: PR analyzer/98073 * gcc.dg/analyzer/pr98073.c: New test.
-rw-r--r--gcc/testsuite/gcc.dg/analyzer/pr98073.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/analyzer/pr98073.c b/gcc/testsuite/gcc.dg/analyzer/pr98073.c
new file mode 100644
index 0000000..abbda09
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/analyzer/pr98073.c
@@ -0,0 +1,13 @@
+struct ist {
+ char ptr;
+ long len;
+} __trans_tmp_1, http_update_host_authority;
+int http_update_host_sl_0_0_0;
+void http_update_host(const struct ist uri) {
+ uri.len || uri.ptr;
+ if (http_update_host_sl_0_0_0) {
+ http_update_host_authority = __trans_tmp_1;
+ !http_update_host_authority.len;
+ } else
+ http_update_host_authority = uri;
+}