[cfe-commits] r145855 - /cfe/trunk/test/Analysis/taint-tester.c

Anna Zaks ganna at apple.com
Mon Dec 5 13:32:59 PST 2011


Author: zaks
Date: Mon Dec  5 15:32:58 2011
New Revision: 145855

URL: http://llvm.org/viewvc/llvm-project?rev=145855&view=rev
Log:
[analyzer] Simplify the expected-warning statement.

Modified:
    cfe/trunk/test/Analysis/taint-tester.c

Modified: cfe/trunk/test/Analysis/taint-tester.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/taint-tester.c?rev=145855&r1=145854&r2=145855&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/taint-tester.c (original)
+++ cfe/trunk/test/Analysis/taint-tester.c Mon Dec  5 15:32:58 2011
@@ -11,5 +11,5 @@
   int *addr = &Buffer[0];
   scanf("%d", &n);
   addr += n;// expected-warning {{tainted}}
-  *addr = n; // expected-warning {{tainted}} expected-warning {{tainted}}
+  *addr = n; // expected-warning 2 {{tainted}}
 }





More information about the cfe-commits mailing list