diff options
| author | Hans Wennborg <hans@hanshq.net> | 2012-07-24 17:59:41 +0000 |
|---|---|---|
| committer | Hans Wennborg <hans@hanshq.net> | 2012-07-24 17:59:41 +0000 |
| commit | 84ce606b9108b83e8f44985481f5fa26cfd4fc18 (patch) | |
| tree | 2b3e2b572aedad3538fc9ea8c86fe5e7a5ab4618 /clang/test | |
| parent | 0a36302ae032d924d876a8d686547f2118c26901 (diff) | |
| download | bcm5719-llvm-84ce606b9108b83e8f44985481f5fa26cfd4fc18.tar.gz bcm5719-llvm-84ce606b9108b83e8f44985481f5fa26cfd4fc18.zip | |
Tweak warning text for returning incomplete type from extern "C" functions.
A warning was added in r150128 for returning non-C compatible
user-defined types from functions with C linkage.
This makes the text more clear for the case when the type isn't
decidedly non-C compatible, but incomplete.
llvm-svn: 160681
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/SemaCXX/function-extern-c.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/function-extern-c.cpp b/clang/test/SemaCXX/function-extern-c.cpp index f20cd38a3cb..16dbbb26fc6 100644 --- a/clang/test/SemaCXX/function-extern-c.cpp +++ b/clang/test/SemaCXX/function-extern-c.cpp @@ -36,3 +36,5 @@ extern "C" void f7( U u ); extern "C" double f8(void); extern "C" long long f11( void ); extern "C" A *f10( void ); + +extern "C" struct mypodstruct f12(); // expected-warning {{'f12' has C-linkage specified, but returns incomplete type 'struct mypodstruct' which could be incompatible with C}} |

