OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [parse/] [direct-initialization-2.C] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// Copyright (C) 2002 Free Software Foundation
2
// Origin: C++/729
3
// Contributed by Gabriel Dos Reis 
4
// { dg-do compile }
5
 
6
struct A {
7
   A(int) { }
8
};
9
 
10
struct B {
11
   typedef B T;
12
   B(A, char**) {}
13
};
14
 
15
int main(int argc, char** argv)
16
{
17
   B::T t(A(argc), argv);
18
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.