xref: /minix3/external/bsd/llvm/dist/clang/test/Sema/ast-print.c (revision 433d6423c39e34ec4b79c950597bb2d236f886be)
1 // RUN: %clang_cc1 %s -ast-print | FileCheck %s
2 
3 typedef void func_typedef();
4 func_typedef xxx;
5 
6 typedef void func_t(int x);
7 func_t a;
8 
9 struct blah {
10   struct {
11     struct {
12       int b;
13     };
14   };
15 };
16 
17 int foo(const struct blah *b) {
18   // CHECK: return b->b;
19   return b->b;
20 }
21