xref: /minix3/external/bsd/llvm/dist/clang/test/Sema/ast-print.c (revision 0b98e8aad89f2bd4ba80b523d73cf29e9dd82ce1)
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