From ec2b103c267a06a66e926f62cd96767b280f5cf5 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Tue, 2 Jun 2009 17:58:47 +0000 Subject: Import Clang, at r72732. --- test/Coverage/html-diagnostics.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/Coverage/html-diagnostics.c (limited to 'test/Coverage/html-diagnostics.c') diff --git a/test/Coverage/html-diagnostics.c b/test/Coverage/html-diagnostics.c new file mode 100644 index 0000000000000..6144f2fb98a30 --- /dev/null +++ b/test/Coverage/html-diagnostics.c @@ -0,0 +1,15 @@ +// RUN: rm -rf %t && +// RUN: clang-cc --html-diags=%t -checker-simple %s + +void f0(int x) { + int *p = &x; + + if (x > 10) { + if (x == 22) + p = 0; + } + + *p = 10; +} + + -- cgit v1.2.3