summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/initlist39.C
blob: a6dd1ec43d1b87717c5961c486a4ed270ebcb703 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-options -std=c++0x }

struct A { int i; };

void f (const A &);
void f (A &&);

void g (A, int);
void g (A, double);

int main()
{
  f ( { 1 } );
  g ( { 1 }, 1 );
}