summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/dump_egraph.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Analysis/dump_egraph.cpp')
-rw-r--r--clang/test/Analysis/dump_egraph.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/clang/test/Analysis/dump_egraph.cpp b/clang/test/Analysis/dump_egraph.cpp
new file mode 100644
index 00000000000..74133c54014
--- /dev/null
+++ b/clang/test/Analysis/dump_egraph.cpp
@@ -0,0 +1,15 @@
+// RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-dump-egraph=%t.dot %s
+// RUN: cat %t.dot | FileCheck %s
+// REQUIRES: asserts
+
+
+struct S {
+ ~S();
+};
+
+void foo() {
+ // Test that dumping symbols conjured on null statements doesn't crash.
+ S s;
+}
+
+// CHECK: conj_$0\{int, LC1, no stmt, #1\}
OpenPOWER on IntegriCloud