]> granicus.if.org Git - clang/commit
PR4287: allow a variadic prototype to make a subsequent K&R style
authorEli Friedman <eli.friedman@gmail.com>
Mon, 1 Jun 2009 09:24:59 +0000 (09:24 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Mon, 1 Jun 2009 09:24:59 +0000 (09:24 +0000)
commitbc4e29f307f86ddbc2f31d9530da79ad9b0c6b7b
tree27c814f8c39d39cc6c823b98a406b768ac2bf4e1
parentc13f9f037324d49bc8df880000a27d2b0e33d69c
PR4287: allow a variadic prototype to make a subsequent K&R style
definition variadic.  I'm not completely sure it's legal, but the
standard can be interpreted as making it legal, and gcc seems to think
it's legal, so I didn't add an extension warning.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72689 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
lib/Sema/SemaExpr.cpp
test/Sema/knr-variadic-def.c [new file with mode: 0644]