diff options
Diffstat (limited to 'test/SemaCXX/crashes.cpp')
-rw-r--r-- | test/SemaCXX/crashes.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/test/SemaCXX/crashes.cpp b/test/SemaCXX/crashes.cpp index b77248e..d02704c 100644 --- a/test/SemaCXX/crashes.cpp +++ b/test/SemaCXX/crashes.cpp @@ -104,3 +104,35 @@ namespace PR10270 { return; } } + +namespace rdar11806334 { + +class cc_YCbCr; + +class cc_rgb +{ + public: + cc_rgb( uint p ); // expected-error {{unknown type name}} + cc_rgb( cc_YCbCr v_in ); +}; + +class cc_hsl +{ + public: + cc_rgb rgb(); + cc_YCbCr YCbCr(); +}; + +class cc_YCbCr +{ + public: + cc_YCbCr( const cc_rgb v_in ); +}; + +cc_YCbCr cc_hsl::YCbCr() +{ + cc_YCbCr v_out = cc_YCbCr( rgb()); + return v_out; +} + +} |