[PATCH] D106030: [Clang] add support for error+warning fn attrs
Nick Desaulniers via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 20 17:22:27 PDT 2021
nickdesaulniers added inline comments.
================
Comment at: clang/test/Frontend/backend-attribute-error-warning.c:29
+ duplicate_errors(); // expected-error {{call to 'duplicate_errors' declared with attribute error: two}}
+ // TODO: why is this a warning not an error????
+ duplicate_warnings(); // expected-warning {{call to 'duplicate_warnings' declared with attribute warning: two}}
----------------
because the callee has a `warning` attribute! duh...TODO: delete comment.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106030/new/
https://reviews.llvm.org/D106030
More information about the llvm-commits
mailing list