Forward port r208464 from google/gcc-4_8.
[official-gcc.git] / main / gcc / testsuite / g++.dg / cpp0x / regress / regress1.C
bloba6fe3999c984ce03456d0678e05d26fb444d61e2
1 // PR c++/46903
2 // This isn't C++0x code, but it was breaking in C++0x mode.
3 // { dg-options -std=c++0x }
5 struct A {};
6 struct B {
7         void *(*a)();
8 };
9 template <typename T> void *CreateA() {}
10 B b = {CreateA<A>};