aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/decl.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/decl.c')
-rw-r--r--test/CodeGen/decl.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/decl.c b/test/CodeGen/decl.c
index 7ffb7006b0..dcf120fd88 100644
--- a/test/CodeGen/decl.c
+++ b/test/CodeGen/decl.c
@@ -89,3 +89,16 @@ struct test7s { int a; int b; } test7[] = {
struct test8s { int f0; char f1; } test8g = {};
+// PR7519
+
+struct S {
+ void (*x) (struct S *);
+};
+
+extern struct S *global_dc;
+void cp_diagnostic_starter(struct S *);
+
+void init_error(void) {
+ global_dc->x = cp_diagnostic_starter;
+}
+