aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2016-07-15 17:56:20 +0200
committerMichael Matz <matz@suse.de>2016-12-15 17:47:09 +0100
commit5d0c16a884a6639ba3d2de43808104839afe6dcd (patch)
treebf8ab548bb5d079bd613db8fb474ceead4f7cd72 /tests
parent662338f116c3b87c78ddb113e8e63f6329fe307f (diff)
downloadtinycc-5d0c16a884a6639ba3d2de43808104839afe6dcd.tar.gz
tinycc-5d0c16a884a6639ba3d2de43808104839afe6dcd.tar.bz2
Support attribute between double pointer stars
"int * __attribute__((something)) *" is supported by GCC.
Diffstat (limited to 'tests')
-rw-r--r--tests/tcctest.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/tcctest.c b/tests/tcctest.c
index 8aa50ab..6218983 100644
--- a/tests/tcctest.c
+++ b/tests/tcctest.c
@@ -3031,3 +3031,10 @@ void attrib_test(void)
printf("attr: %d %d\n", sizeof(Spacked3), sizeof(spacked3));
#endif
}
+extern __attribute__((__unused__)) char * __attribute__((__unused__)) *
+strange_attrib_placement (void);
+
+void * __attribute__((__unused__)) get_void_ptr (void *a)
+{
+ return a;
+}