]> granicus.if.org Git - clang/commit
Issue warning when case value is too large to fit
authorFariborz Jahanian <fjahanian@apple.com>
Wed, 9 Jan 2013 23:04:56 +0000 (23:04 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Wed, 9 Jan 2013 23:04:56 +0000 (23:04 +0000)
commita18e70b25c85d7e653e642b5e6e58d6063af3d83
tree3ed909ec4379a7032f622596801f2aad04e05ec9
parent73189fb7077998a61e3251c65e136da3afcbc5af
Issue warning when case value is too large to fit
in case condition type. // rdar://11577384.
Test is conditionalized on x86_64-apple triple as
I am not sure if the INT_MAX/LONG_MAX values in the test
will pass this test for other hosts.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172016 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Expr.h
lib/AST/ExprConstant.cpp
lib/Sema/SemaStmt.cpp
test/Sema/switch-1.c [new file with mode: 0644]