analyzer: add regression test [PR94579]
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 30 Nov 2021 20:31:59 +0000 (15:31 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Tue, 30 Nov 2021 22:49:05 +0000 (17:49 -0500)
gcc/testsuite/ChangeLog:
PR analyzer/94579
* gcc.dg/analyzer/pr94579.c: New test.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/testsuite/gcc.dg/analyzer/pr94579.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.dg/analyzer/pr94579.c b/gcc/testsuite/gcc.dg/analyzer/pr94579.c
new file mode 100644 (file)
index 0000000..0ab88c2
--- /dev/null
@@ -0,0 +1,11 @@
+struct a *c;
+struct a {
+  int b;
+} d() {
+}
+
+void e()
+
+{
+  *c = d();
+}