r348471 - Add test for ObjC generics
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 6 04:48:31 PST 2018
On Thu, Dec 6, 2018 at 4:26 AM Stephen Kelly via cfe-commits
<cfe-commits at lists.llvm.org> wrote:
>
> Author: steveire
> Date: Thu Dec 6 01:23:59 2018
> New Revision: 348471
>
> URL: http://llvm.org/viewvc/llvm-project?rev=348471&view=rev
> Log:
> Add test for ObjC generics
>
> Modified:
> cfe/trunk/test/AST/ast-dump-decl.m
>
> Modified: cfe/trunk/test/AST/ast-dump-decl.m
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-decl.m?rev=348471&r1=348470&r2=348471&view=diff
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-decl.m (original)
> +++ cfe/trunk/test/AST/ast-dump-decl.m Thu Dec 6 01:23:59 2018
> @@ -81,6 +81,14 @@
> // CHECK-NEXT: ObjCProtocol{{.*}} 'P'
> // CHECK-NEXT: ObjCMethodDecl{{.*}} bar
>
> + at interface TestGenericInterface<T> : A<P> {
> +}
> + at end
> +// CHECK: ObjCInterfaceDecl{{.*}} TestGenericInterface
> +// CHECK-NEXT: -ObjCTypeParamDecl
> +// CHECK-NEXT: -super ObjCInterface
> +// CHECK-NEXT: -ObjCProtocol
It would be useful to test the line and column, identifier, and type
information as well as the basic AST nodes.
~Aaron
> +
> @implementation TestObjCClass (TestObjCCategoryDecl)
> - (void) bar {
> }
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
More information about the cfe-commits
mailing list