summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/regress/regress1.C
blob: a6fe3999c984ce03456d0678e05d26fb444d61e2 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/46903
// This isn't C++0x code, but it was breaking in C++0x mode.
// { dg-options -std=c++0x }

struct A {};
struct B {
	void *(*a)();
};
template <typename T> void *CreateA() {}
B b = {CreateA<A>};