summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/function-extern-c.cpp
diff options
context:
space:
mode:
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 f20cd38..16dbbb2 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}}
OpenPOWER on IntegriCloud