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