summaryrefslogtreecommitdiff
path: root/clang/test/Parser/function-decls.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Parser/function-decls.c')
-rw-r--r--clang/test/Parser/function-decls.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Parser/function-decls.c b/clang/test/Parser/function-decls.c
new file mode 100644
index 0000000..db9a98b
--- /dev/null
+++ b/clang/test/Parser/function-decls.c
@@ -0,0 +1,10 @@
+/* RUN: %clang_cc1 %s -ast-print
+ */
+
+void foo() {
+ int X;
+ X = sizeof(void (*(*)())());
+ X = sizeof(int(*)(int, float, ...));
+ X = sizeof(void (*(int arga, void (*argb)(double Y)))(void* Z));
+}
+