diff options
Diffstat (limited to 'test/Misc/ast-dump-decl.c')
-rw-r--r-- | test/Misc/ast-dump-decl.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/Misc/ast-dump-decl.c b/test/Misc/ast-dump-decl.c index 7d39e6b315c8..45edea26b4f8 100644 --- a/test/Misc/ast-dump-decl.c +++ b/test/Misc/ast-dump-decl.c @@ -102,16 +102,22 @@ struct testIndirectFieldDecl { // CHECK-NEXT: Field{{.*}} '' // CHECK-NEXT: Field{{.*}} 'TestIndirectFieldDecl' +// FIXME: It would be nice to dump the enum and its enumerators. int TestFunctionDecl(int x, enum { e } y) { return x; } // CHECK: FunctionDecl{{.*}} TestFunctionDecl 'int (int, enum {{.*}})' -// CHECK-NEXT: EnumDecl -// CHECK-NEXT: EnumConstantDecl{{.*}} e // CHECK-NEXT: ParmVarDecl{{.*}} x // CHECK-NEXT: ParmVarDecl{{.*}} y // CHECK-NEXT: CompoundStmt +// FIXME: It would be nice to 'Enum' and 'e'. +int TestFunctionDecl2(enum Enum { e } x) { return x; } +// CHECK: FunctionDecl{{.*}} TestFunctionDecl2 'int (enum {{.*}})' +// CHECK-NEXT: ParmVarDecl{{.*}} x +// CHECK-NEXT: CompoundStmt + + int TestFunctionDeclProto(int x); // CHECK: FunctionDecl{{.*}} TestFunctionDeclProto 'int (int)' // CHECK-NEXT: ParmVarDecl{{.*}} x |