diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-07-18 07:11:55 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-07-18 07:11:55 +0000 |
commit | ba4cc01a1fb1e11689782e21cc5413690ade128a (patch) | |
tree | 5d61bc6d773913fb12630d51ed51fbf513909216 /clang/test/CodeGen/inline.c | |
parent | d8921f939cc6c363f0363afa8bcdbe07b6234efb (diff) | |
download | bcm5719-llvm-ba4cc01a1fb1e11689782e21cc5413690ade128a.tar.gz bcm5719-llvm-ba4cc01a1fb1e11689782e21cc5413690ade128a.zip |
Don't crash when codegen'ing an empty redecl of a function in C99 mode, when
neither was inline. Fixes bug introduced in r135377.
llvm-svn: 135380
Diffstat (limited to 'clang/test/CodeGen/inline.c')
-rw-r--r-- | clang/test/CodeGen/inline.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGen/inline.c b/clang/test/CodeGen/inline.c index cbc428cc22a..2f6bd72dab5 100644 --- a/clang/test/CodeGen/inline.c +++ b/clang/test/CodeGen/inline.c @@ -91,3 +91,9 @@ void test_test5() { test5(); } __inline int test6() { return 0; } extern int test6(); + + +// No PR#, but this once crashed clang in C99 mode due to buggy extern inline +// redeclaration detection. +void test7() { } +void test7(); |