aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/function-extern-c.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2012-07-24 17:59:41 +0000
committerHans Wennborg <hans@hanshq.net>2012-07-24 17:59:41 +0000
commit168c07b93510aabd2a19af323d1132fffe498ee4 (patch)
tree8ad4328ff2f5b6398b4d77022384ace64d81ddf4 /test/SemaCXX/function-extern-c.cpp
parentdb13f04dd0579874932bdb958647d0903f632dd4 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160681 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/function-extern-c.cpp')
-rw-r--r--test/SemaCXX/function-extern-c.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/SemaCXX/function-extern-c.cpp b/test/SemaCXX/function-extern-c.cpp
index f20cd38a3c..16dbbb26fc 100644
--- a/test/SemaCXX/function-extern-c.cpp
+++ b/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}}