diff options
author | John McCall <rjmccall@apple.com> | 2011-02-19 02:53:41 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-02-19 02:53:41 +0000 |
commit | 15e310a3b970b64a84cb30f0005bc396b4d978cb (patch) | |
tree | a07be31cb50547b6d1a6f71a6397f500a58e300d /test/Analysis/cxx-crashes.cpp | |
parent | 370e6e984cc32167228b66eaf9610c010da0d794 (diff) |
Warn about code that uses variables and functions with internal linkage
without defining them. This should be an error, but I'm paranoid about
"uses" that end up not actually requiring a definition. I'll revisit later.
Also, teach IR generation to not set internal linkage on variable
declarations, just for safety's sake. Doing so produces an invalid module
if the variable is not ultimately defined.
Also, fix several places in the test suite where we were using internal
functions without definitions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126016 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/cxx-crashes.cpp')
-rw-r--r-- | test/Analysis/cxx-crashes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Analysis/cxx-crashes.cpp b/test/Analysis/cxx-crashes.cpp index cebc55bd42..ae2f3cb5eb 100644 --- a/test/Analysis/cxx-crashes.cpp +++ b/test/Analysis/cxx-crashes.cpp @@ -18,7 +18,7 @@ namespace { struct A { }; struct B { - operator A(); + operator A() { return A(); } }; A f(char *dst) { |