From 554bcb69c2d785a011a30e7db87a36a87fe7db10 Mon Sep 17 00:00:00 2001 From: dim Date: Wed, 15 Aug 2012 20:02:54 +0000 Subject: Vendor import of clang trunk r161861: http://llvm.org/svn/llvm-project/cfe/trunk@161861 --- test/Analysis/coverage.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/Analysis/coverage.c') diff --git a/test/Analysis/coverage.c b/test/Analysis/coverage.c index 73d78da..8116913 100644 --- a/test/Analysis/coverage.c +++ b/test/Analysis/coverage.c @@ -92,3 +92,11 @@ void coverage9(int *x) { function_which_gives_up_settonull(&x); y = (*x); // no warning } + +static void empty_function(){ +} +int use_empty_function(int x) { + x = 0; + empty_function(); + return 5/x; //expected-warning {{Division by zero}} +} -- cgit v1.1