Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git] / gcc / testsuite / g++.dg / template / anon1.C
blobff5c9ea1553cb3ea7f20b87c234603110a4f2f62
1 struct x {
2     int foo () { return 0; }
3 };
5 template <class T>
6 struct vector {
7     T& bar () { static T a; return a; }
8 };
10 template <class T>
11 struct y {
12     typedef struct {   
13         x t;
14     } s;
15     
16     vector<s> array;
18     int foo ()
19       { return array.bar().t.foo(); }
21 int i = y<x>().foo ();