[sanitizer] Add 2 random tests for the scanf implementation.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Fri, 8 Feb 2013 11:19:23 +0000 (11:19 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Fri, 8 Feb 2013 11:19:23 +0000 (11:19 +0000)
llvm-svn: 174705

compiler-rt/lib/sanitizer_common/tests/sanitizer_scanf_interceptor_test.cc

index acf16c2..2dc3903 100644 (file)
@@ -99,6 +99,9 @@ TEST(SanitizerCommonInterceptors, Scanf) {
 
   testScanf("%*d%u", 1, I);
 
+  testScanf("%c%d", 2, C, I);
+  testScanf("%A%lf", 2, F, D);
+
   // Unsupported stuff.
   testScanf("%a[", 0);
   testScanf("%as", 0);