mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 19:49:36 +00:00
32d545f930
Summary: Printing constructing_objects could be non-deterministic as it is a map. llvm-svn: 362101
25 lines
1.1 KiB
C++
25 lines
1.1 KiB
C++
// RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-dump-egraph=%t.dot %s
|
|
// RUN: cat %t.dot | FileCheck %s
|
|
// REQUIRES: asserts
|
|
|
|
struct S {
|
|
~S();
|
|
};
|
|
|
|
struct T {
|
|
S s;
|
|
T() : s() {}
|
|
};
|
|
|
|
void foo() {
|
|
// Test that dumping symbols conjured on null statements doesn't crash.
|
|
T t;
|
|
}
|
|
|
|
// CHECK: \"location_context\": \"#0 Call\", \"calling\": \"foo\", \"call_line\": null, \"items\": [\l \{ \"lctx_id\": 1, \"stmt_id\": {{[0-9]+}}, \"kind\": \"construct into local variable\", \"argument_index\": null, \"pretty\": \"T t;\", \"value\": \"&t\"
|
|
|
|
// CHECK: \"location_context\": \"#0 Call\", \"calling\": \"T::T\", \"call_line\": \"16\", \"items\": [\l \{ \"lctx_id\": 2, \"init_id\": {{[0-9]+}}, \"kind\": \"construct into member variable\", \"argument_index\": null, \"pretty\": \"s\", \"value\": \"&t-\>s\"
|
|
|
|
// CHECK: \"cluster\": \"t\", \"items\": [\l \{ \"kind\": \"Default\", \"offset\": 0, \"value\": \"conj_$3\{int, LC3, no stmt, #1\}\"
|
|
|