[PATCH] D43248: [Attr] Fix parameter indexing for attributes

Joel E. Denny via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 12 19:00:33 PDT 2018


jdenny added inline comments.


================
Comment at: cfe/trunk/test/Frontend/ast-attr.cpp:5
+// RUN: %clang -emit-ast -o %t.ast %S/../Sema/attr-print.cpp
+// RUN: %clang_cc1 %t.ast -ast-print | FileCheck %S/../Sema/attr-print.cpp
----------------
aaron.ballman wrote:
> Just to verify my understanding, this test is checking the serialization and deserialization?
That's right, and it failed without the other changes in this revision because alloc_size's second argument serialized/deserialized as 0 when it was actually invalid (that is, unspecified).  Of course, this test is more thorough than just exercising alloc_size.


https://reviews.llvm.org/D43248





More information about the cfe-commits mailing list