// RUN: %clang_cc1 -Wreturn-type -fsyntax-only -std=c++11 -verify %s
;
;
;
;
extern "C" U ; // expected-warning {{'f3' has C-linkage specified, but returns user-defined type 'U' which is incompatible with C}}
extern "C" S ; // expected-warning {{'f0' has C-linkage specified, but returns user-defined type 'S' which is incompatible with C}}
extern "C" A ; // expected-warning {{'f4' has C-linkage specified, but returns user-defined type 'A' which is incompatible with C}}
// These should all be fine
extern "C" S2 ;
extern "C" void ;
extern "C" void ;
extern "C" void ;
extern "C" double ;
extern "C" long long ;
extern "C" A *;
extern "C" struct mypodstruct ; // expected-warning {{'f12' has C-linkage specified, but returns incomplete type 'struct mypodstruct' which could be incompatible with C}}
// rdar://13364028