From 784b168c9267369c593a69a2eb9fbb12a9c6feed Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 2 Dec 2006 07:59:33 +0000 Subject: new testcase llvm-svn: 39233 --- clang/test/Parser/function-decls.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 clang/test/Parser/function-decls.c (limited to 'clang/test/Parser/function-decls.c') diff --git a/clang/test/Parser/function-decls.c b/clang/test/Parser/function-decls.c new file mode 100644 index 00000000000..ef93756cc64 --- /dev/null +++ b/clang/test/Parser/function-decls.c @@ -0,0 +1,10 @@ +/* RUN: clang %s -parse-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)); +} + -- cgit v1.2.3