diff options
Diffstat (limited to 'test/Misc/ast-dump-decl.m')
-rw-r--r-- | test/Misc/ast-dump-decl.m | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Misc/ast-dump-decl.m b/test/Misc/ast-dump-decl.m index f8a5e5a263d6a..539923b2e36a9 100644 --- a/test/Misc/ast-dump-decl.m +++ b/test/Misc/ast-dump-decl.m @@ -134,3 +134,12 @@ void TestBlockDecl(int x) { // CHECK-NEXT: ... // CHECK-NEXT: capture ParmVar{{.*}} 'x' 'int' // CHECK-NEXT: CompoundStmt + +@interface B ++ (int) foo; +@end + +void f() { + __typeof__(B.foo) Test; +} +// CHECK: VarDecl{{.*}}Test 'typeof (B.foo)':'int' |