diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-10-04 20:46:41 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-10-04 20:46:41 +0000 |
commit | ae3c16cc544d21b49936d9da51fd1f8ca8bc064e (patch) | |
tree | f9952d721156d04800d1c25ae90bbc3af6b29dc0 /test/Coverage/html-diagnostics.c | |
parent | f7a726b5f220c0ea924c47b4b1f59b99eb2e5712 (diff) |
Add test/Driver.
- env-include-paths.c is XFAIL as it exposed a bug.
Add test/Coverage.
- For tests which achieve code coverage but don't validate anything.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57070 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Coverage/html-diagnostics.c')
-rw-r--r-- | test/Coverage/html-diagnostics.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Coverage/html-diagnostics.c b/test/Coverage/html-diagnostics.c new file mode 100644 index 0000000000..75d4e067fc --- /dev/null +++ b/test/Coverage/html-diagnostics.c @@ -0,0 +1,15 @@ +// RUN: rm -rf %t && +// RUN: clang --html-diags=%t -checker-simple %s + +void f0(int x) { + int *p = &x; + + if (x > 10) { + if (x == 22) + p = 0; + } + + *p = 10; +} + + |