summaryrefslogtreecommitdiffstats
path: root/test/Sema/ast-print.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/ast-print.c')
-rw-r--r--test/Sema/ast-print.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/test/Sema/ast-print.c b/test/Sema/ast-print.c
index ff66d35..2066e18 100644
--- a/test/Sema/ast-print.c
+++ b/test/Sema/ast-print.c
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -ast-print
+// RUN: %clang_cc1 %s -ast-print | FileCheck %s
typedef void func_typedef();
func_typedef xxx;
@@ -6,3 +6,15 @@ func_typedef xxx;
typedef void func_t(int x);
func_t a;
+struct blah {
+ struct {
+ struct {
+ int b;
+ };
+ };
+};
+
+int foo(const struct blah *b) {
+ // CHECK: return b->b;
+ return b->b;
+}
OpenPOWER on IntegriCloud