1// RUN: %clang_cc1 -fsyntax-only -std=c++0x -verify %s 2 3namespace PR10622 { 4 struct foo { 5 const int first; 6 foo(const foo&) = default; 7 }; 8 void find_or_insert(const foo& __obj) { 9 foo x(__obj); 10 } 11} 12