OSDN Git Service

2009-07-17 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / ext / complit11.C
1 // { dg-do compile }
2 // { dg-options "" }
3
4 struct A { int i; };
5
6 template<int t>
7 void foo()
8 {
9     ((struct A) { 0 }).i += 1;
10 }
11
12 void g(void)
13 {
14   foo<0>();
15 }
16