aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SafeStack.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2016-06-16 21:39:46 +0000
committerOlivier Goffart <ogoffart@woboq.com>2016-06-16 21:39:46 +0000
commit12b22198417c1eb83780f0905d8e466c2d774380 (patch)
tree49362a359ec199e729e38d4f2fbc29137197e68d /llvm/lib/CodeGen/SafeStack.cpp
parent979cb8887070437245313bf856a310a6cac5ef19 (diff)
downloadllvm-12b22198417c1eb83780f0905d8e466c2d774380.zip
llvm-12b22198417c1eb83780f0905d8e466c2d774380.tar.gz
llvm-12b22198417c1eb83780f0905d8e466c2d774380.tar.bz2
Functions declared in a scope should not hide previous declaration in earlier scopes
This code should be an error: void foo(int); void f3() { int foo(float); { float foo(int); // expected-error {{functions that differ only in their return type cannot be overloaded}} } } the foo(float) function declared at function scope should not hide the float(int) while trying to redeclare functions. Differential Revision: http://reviews.llvm.org/D19763 llvm-svn: 272961
Diffstat (limited to 'llvm/lib/CodeGen/SafeStack.cpp')
0 files changed, 0 insertions, 0 deletions