1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm -g -triple x86_64-apple-darwin %s -o - | FileCheck %s 2*f4a2713aSLionel Sambuc // PR11345 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambuc class locale { 5*f4a2713aSLionel Sambuc private: _M_add_reference() const6*f4a2713aSLionel Sambuc void _M_add_reference() const throw() { 7*f4a2713aSLionel Sambuc } 8*f4a2713aSLionel Sambuc }; 9*f4a2713aSLionel Sambuc class ios_base { 10*f4a2713aSLionel Sambuc locale _M_ios_locale; 11*f4a2713aSLionel Sambuc public: 12*f4a2713aSLionel Sambuc class Init { 13*f4a2713aSLionel Sambuc }; 14*f4a2713aSLionel Sambuc }; 15*f4a2713aSLionel Sambuc static ios_base::Init __ioinit; 16*f4a2713aSLionel Sambuc 17*f4a2713aSLionel Sambuc // CHECK-NOT: _M_ios_locale 18