1 2 3 4 5 6 7 8 9 10 11 12
// RUN: %clang_cc1 -fsyntax-only -verify %s namespace PR5909 { struct Foo { int x : 20; }; bool Test(const int& foo); const Foo f = { 0 }; // It compiles without the 'const'. bool z = Test(f.x); }