1// RUN: %clang_cc1 -fsyntax-only %s 2extern "C" { 3 class bar { 4 friend struct foo; 5 static struct foo& baz (); 6 }; 7 struct foo { 8 void zed () { 9 bar::baz(); 10 } 11 }; 12} 13