[libcxx-commits] [PATCH] D91565: Guard init_priority attribute within libc++
Zbigniew Sarbinowski via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Nov 20 11:41:12 PST 2020
zibi marked an inline comment as done.
zibi added inline comments.
================
Comment at: clang/test/SemaCXX/init-priority-attr.cpp:26
Two foo __attribute__((init_priority(101))) ( 5, 6 );
+#if defined(__MVS__)
+ #if defined(SYSTEM)
----------------
aaron.ballman wrote:
> Rather than using the preprocessor, you can assign a prefix to be checked to `-verify`. e.g., `-verify=unknown` would allow you to do `// unknown-warning {{unknown attribute 'init_priority' ignored}}` or `unknown-no-diagnostics` that is only checked when `-verify=unknown`.
>
> I wonder if it would be cleaner to use that solution here instead of the preprocessor by adding a new RUN line that's specific to AIX, and setting some non-AIX triples for the other run lines.
That simplifies a lot in the expanse of duplicating the run.
Thank you Aaron.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D91565/new/
https://reviews.llvm.org/D91565
More information about the libcxx-commits
mailing list