[PATCH] D154934: [clang][dataflow] Use `IntegerValue` instead of `StructValue` in `ValueTest`.
Martin Böhme via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 11 21:53:00 PDT 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG0014aab2d588: [clang][dataflow] Use `IntegerValue` instead of `StructValue` in `ValueTest`. (authored by mboehme).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154934/new/
https://reviews.llvm.org/D154934
Files:
clang/unittests/Analysis/FlowSensitive/ValueTest.cpp
Index: clang/unittests/Analysis/FlowSensitive/ValueTest.cpp
===================================================================
--- clang/unittests/Analysis/FlowSensitive/ValueTest.cpp
+++ clang/unittests/Analysis/FlowSensitive/ValueTest.cpp
@@ -19,10 +19,16 @@
using namespace dataflow;
TEST(ValueTest, EquivalenceReflexive) {
- StructValue V;
+ IntegerValue V;
EXPECT_TRUE(areEquivalentValues(V, V));
}
+TEST(ValueTest, DifferentIntegerValuesNotEquivalent) {
+ IntegerValue V1;
+ IntegerValue V2;
+ EXPECT_FALSE(areEquivalentValues(V1, V2));
+}
+
TEST(ValueTest, AliasedReferencesEquivalent) {
auto L = ScalarStorageLocation(QualType());
ReferenceValue V1(L);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154934.539367.patch
Type: text/x-patch
Size: 684 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230712/630ae1a0/attachment.bin>
More information about the cfe-commits
mailing list