commit 0310c25228215877652d65d6c7d64e3dafa15d24 parent e6ddda1e88b759c40880707accff6a8f3340ee3c Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Thu, 23 Mar 2023 19:44:45 +0100 test/cc: Add error/0037-pointer.c Diffstat:
A | tests/cc/error/0037-pointer.c | | | 11 | +++++++++++ |
M | tests/cc/error/scc-tests.lst | | | 1 | + |
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/tests/cc/error/0037-pointer.c b/tests/cc/error/0037-pointer.c @@ -0,0 +1,11 @@ +/* +PATTERN: +0037-pointer.c:11: error: incorrect type in return +. +*/ + +char * +f() +{ + return 1, 0; +} diff --git a/tests/cc/error/scc-tests.lst b/tests/cc/error/scc-tests.lst @@ -34,3 +34,4 @@ 0034-eof.c 0035-cpp.c 0036-func.c +0037-pointer.c