[PATCH] D159307: [Sema] add test cases for D152495 NFC
Nick Desaulniers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 31 14:18:17 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rGcfa578cde031: [Sema] add test cases for D152495 NFC (authored by nickdesaulniers).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D159307/new/
https://reviews.llvm.org/D159307
Files:
clang/test/SemaCXX/warn-unused-variables.cpp
Index: clang/test/SemaCXX/warn-unused-variables.cpp
===================================================================
--- clang/test/SemaCXX/warn-unused-variables.cpp
+++ clang/test/SemaCXX/warn-unused-variables.cpp
@@ -46,6 +46,9 @@
static int x = 0;
static int y = 0; // expected-warning{{unused variable 'y'}}
#pragma unused(x)
+ static __attribute__((used)) int z;
+ static __attribute__((unused)) int w;
+ [[maybe_unused]] static int v;
}
// PR10168
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159307.555162.patch
Type: text/x-patch
Size: 471 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230831/4b6a6eb4/attachment-0001.bin>
More information about the cfe-commits
mailing list