aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/noncompile/pr16876.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/noncompile/pr16876.c')
-rw-r--r--gcc/testsuite/gcc.dg/noncompile/pr16876.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/noncompile/pr16876.c b/gcc/testsuite/gcc.dg/noncompile/pr16876.c
new file mode 100644
index 00000000000..9587849b2fc
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/noncompile/pr16876.c
@@ -0,0 +1,15 @@
+/* { dg-options "-O -finline-functions" } */
+
+static void g();
+struct bigstack {
+ char space[4096];
+};
+
+
+void f() {
+ g(0); /* { dg-error "incompatible type for argument 1 of 'g'" } */
+}
+
+static void g(struct bigstack bstack) {
+ g(bstack);
+}