aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-07-07 19:08:53 -0700
committerMichael Forney <mforney@mforney.org>2019-07-07 19:08:58 -0700
commit3f8a5efa9f94090dfc4f171858b5ed6812109289 (patch)
tree16b4c1aa958c6556721c48d99f44dfd0efa9be28 /test
parentae89197f69f4cf9bd83a8ded2a6dab8aa385c71f (diff)
downloadcproc-3f8a5efa9f94090dfc4f171858b5ed6812109289.tar.xz
type: Ignore parameter qualifiers when determining type compatibility
The end of C11 6.7.6.3p15 says that qualifiers should be ignored when checking compatibility of function types.
Diffstat (limited to 'test')
-rw-r--r--test/compatible-function-types.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/compatible-function-types.c b/test/compatible-function-types.c
index 0e63a1c..4dcd877 100644
--- a/test/compatible-function-types.c
+++ b/test/compatible-function-types.c
@@ -15,3 +15,6 @@ void f5(unsigned, double);
void f6(const char *, ...);
void f6(const char[], ...);
+
+void f7(const int);
+void f7(int);