blob: 2066e182c12da6588f416e881acc60931b80965c [file] [log] [blame]
David Blaikie383ec172012-11-12 19:12:12 +00001// RUN: %clang_cc1 %s -ast-print | FileCheck %s
Chris Lattner0d6ca112007-12-03 21:43:25 +00002
3typedef void func_typedef();
4func_typedef xxx;
5
Chris Lattnerec584d62007-12-06 17:20:20 +00006typedef void func_t(int x);
7func_t a;
Chris Lattner0d6ca112007-12-03 21:43:25 +00008
David Blaikie383ec172012-11-12 19:12:12 +00009struct blah {
10 struct {
11 struct {
12 int b;
13 };
14 };
15};
16
17int foo(const struct blah *b) {
18 // CHECK: return b->b;
19 return b->b;
20}