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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [ctors17.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do assemble  }
2
// GROUPS passed constructors
3
// ctor file
4
// Message-Id: <199306151813.gD28471@mail.Germany.EU.net>
5
// From: stephan@ifconnection.de (Stephan Muehlstrasser)
6
// Subject: gcc 2.4.3.1: illegal constructor call not rejected
7
// Date: Tue, 15 Jun 1993 18:34:14 +0200 (MET DST)
8
 
9
 
10
#include 
11
 
12
class X : public std::ifstream { // { dg-message "note" } candidate
13
    public:
14
      X(int a, const char *b) {} // { dg-message "note" } candidate
15
};
16
int main()
17
{
18
    X *y = new X(10, "123");
19
    // the compiler must reject this constructor call:
20
    X *x = new X("abc");// { dg-error "match" }
21
}

powered by: WebSVN 2.1.0

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