[cfe-commits] r137903 - in /cfe/trunk: include/clang/Basic/Builtins.def include/clang/Basic/DiagnosticSemaKinds.td include/clang/Sema/Sema.h lib/Sema/SemaChecking.cpp test/Sema/warn-strlcpycat-size.c

NAKAMURA Takumi geek4civic at gmail.com
Wed Aug 17 17:20:07 PDT 2011


Ted, FYI, on i686-mingw

FAIL: Clang :: Sema/warn-strlcpycat-size.c (2768 of 3692)
******************** TEST 'Clang :: Sema/warn-strlcpycat-size.c'
FAILED ********************
Script:
--
e:/bb-win7/clang-i686-msys/build/Release+Asserts/bin/clang.EXE -cc1
-Wstrlcpy-size -verify -fsyntax-only
e:/bb-win7/clang-i686-msys/llvm-project/llvm/tools/clang/test/Sema/warn-strlcpycat-size.c
--
Exit Code: 1
Command Output (stderr):
--
error: 'warning' diagnostics expected but not seen:
  Line 22: size argument in 'strlcpy' call appears to be size of the
source; expected the size of the destination
  Line 23: size argument in 'strlcpy' call appears to be size of the
source; expected the size of the destination
  Line 24: size argument in 'strlcat' call appears to be size of the
source; expected the size of the destination
  Line 25: size argument in 'strlcpy' call appears to be size of the
source; expected the size of the destination
  Line 26: size argument in 'strlcpy' call appears to be size of the
source; expected the size of the destination
  Line 27: size argument in 'strlcpy' call appears to be size of the
source; expected the size of the destination
error: 'warning' diagnostics seen but not expected:
  Line 4: incompatible redeclaration of library function 'strlcpy'
  Line 5: incompatible redeclaration of library function 'strlcat'
  Line 6: incompatible redeclaration of library function 'strlen'
error: 'note' diagnostics expected but not seen:
  Line 22: change size argument to be the size of the destination
  Line 23: change size argument to be the size of the destination
  Line 24: change size argument to be the size of the destination
  Line 25: change size argument to be the size of the destination
  Line 26: change size argument to be the size of the destination
error: 'note' diagnostics seen but not expected:
  Line 4: 'strlcpy' is a builtin with type 'unsigned int (char *,
const char *, unsigned int)'
  Line 5: 'strlcat' is a builtin with type 'unsigned int (char *,
const char *, unsigned int)'
  Line 6: 'strlen' is a builtin with type 'unsigned int (const char *)'
17 errors generated.
--

********************



More information about the cfe-commits mailing list